From eb51bdfe2f7cac51279f923a885d17896e1d9295 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Mon, 25 Dec 2023 12:32:35 -0500 Subject: [PATCH] Add original field name to wasm macro. --- src/wasm/angle_link.rs | 1 + src/wasm/babel_call.rs | 1 + src/wasm/bold.rs | 21 ++++++++++++++------- src/wasm/center_block.rs | 1 + src/wasm/citation.rs | 1 + src/wasm/citation_reference.rs | 1 + src/wasm/clock.rs | 1 + src/wasm/code.rs | 21 ++++++++++++++------- src/wasm/comment.rs | 1 + src/wasm/comment_block.rs | 1 + src/wasm/diary_sexp.rs | 1 + src/wasm/document.rs | 11 +++++++++++ src/wasm/drawer.rs | 1 + src/wasm/dynamic_block.rs | 1 + src/wasm/entity.rs | 1 + src/wasm/example_block.rs | 1 + src/wasm/export_block.rs | 1 + src/wasm/export_snippet.rs | 1 + src/wasm/fixed_width_area.rs | 1 + src/wasm/footnote_definition.rs | 1 + src/wasm/footnote_reference.rs | 1 + src/wasm/headline.rs | 1 + src/wasm/horizontal_rule.rs | 1 + src/wasm/inline_babel_call.rs | 1 + src/wasm/inline_source_block.rs | 1 + src/wasm/italic.rs | 1 + src/wasm/keyword.rs | 1 + src/wasm/latex_environment.rs | 1 + src/wasm/latex_fragment.rs | 1 + src/wasm/line_break.rs | 1 + src/wasm/macros.rs | 3 ++- src/wasm/node_property.rs | 1 + src/wasm/org_macro.rs | 1 + src/wasm/paragraph.rs | 1 + src/wasm/plain_link.rs | 1 + src/wasm/plain_list.rs | 1 + src/wasm/plain_list_item.rs | 1 + src/wasm/plain_text.rs | 1 + src/wasm/planning.rs | 1 + src/wasm/property_drawer.rs | 1 + src/wasm/quote_block.rs | 1 + src/wasm/radio_link.rs | 1 + src/wasm/radio_target.rs | 1 + src/wasm/regular_link.rs | 1 + src/wasm/section.rs | 1 + src/wasm/special_block.rs | 1 + src/wasm/src_block.rs | 1 + src/wasm/statistics_cookie.rs | 1 + src/wasm/strike_through.rs | 1 + src/wasm/subscript.rs | 1 + src/wasm/superscript.rs | 1 + src/wasm/table.rs | 1 + src/wasm/table_cell.rs | 1 + src/wasm/table_row.rs | 1 + src/wasm/target.rs | 1 + src/wasm/timestamp.rs | 1 + src/wasm/underline.rs | 1 + src/wasm/verbatim.rs | 1 + src/wasm/verse_block.rs | 1 + 59 files changed, 96 insertions(+), 15 deletions(-) diff --git a/src/wasm/angle_link.rs b/src/wasm/angle_link.rs index 7e9d15c..41625f2 100644 --- a/src/wasm/angle_link.rs +++ b/src/wasm/angle_link.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmAngleLink<'s> { to_wasm!( WasmAngleLink<'s>, AngleLink<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/babel_call.rs b/src/wasm/babel_call.rs index fe1a3e7..4343fb3 100644 --- a/src/wasm/babel_call.rs +++ b/src/wasm/babel_call.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmBabelCall<'s> { to_wasm!( WasmBabelCall<'s>, BabelCall<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/bold.rs b/src/wasm/bold.rs index 17211bc..a2b8a32 100644 --- a/src/wasm/bold.rs +++ b/src/wasm/bold.rs @@ -18,10 +18,17 @@ pub(crate) struct WasmBold<'s> { phantom: PhantomData<&'s ()>, } -to_wasm!(WasmBold<'s>, Bold<'s>, wasm_context, standard_properties, { - Ok(WasmBold { - standard_properties, - children: Vec::new(), - phantom: PhantomData, - }) -}); +to_wasm!( + WasmBold<'s>, + Bold<'s>, + original, + wasm_context, + standard_properties, + { + Ok(WasmBold { + standard_properties, + children: Vec::new(), + phantom: PhantomData, + }) + } +); diff --git a/src/wasm/center_block.rs b/src/wasm/center_block.rs index aaca3a6..042d487 100644 --- a/src/wasm/center_block.rs +++ b/src/wasm/center_block.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmCenterBlock<'s> { to_wasm!( WasmCenterBlock<'s>, CenterBlock<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/citation.rs b/src/wasm/citation.rs index 0ab3f6f..e2eb7bb 100644 --- a/src/wasm/citation.rs +++ b/src/wasm/citation.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmCitation<'s> { to_wasm!( WasmCitation<'s>, Citation<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/citation_reference.rs b/src/wasm/citation_reference.rs index 4463bb3..c937db4 100644 --- a/src/wasm/citation_reference.rs +++ b/src/wasm/citation_reference.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmCitationReference<'s> { to_wasm!( WasmCitationReference<'s>, CitationReference<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/clock.rs b/src/wasm/clock.rs index 1b4e9de..5f8c881 100644 --- a/src/wasm/clock.rs +++ b/src/wasm/clock.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmClock<'s> { to_wasm!( WasmClock<'s>, Clock<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/code.rs b/src/wasm/code.rs index aaea909..34e2f73 100644 --- a/src/wasm/code.rs +++ b/src/wasm/code.rs @@ -18,10 +18,17 @@ pub(crate) struct WasmCode<'s> { phantom: PhantomData<&'s ()>, } -to_wasm!(WasmCode<'s>, Code<'s>, wasm_context, standard_properties, { - Ok(WasmCode { - standard_properties, - children: Vec::new(), - phantom: PhantomData, - }) -}); +to_wasm!( + WasmCode<'s>, + Code<'s>, + original, + wasm_context, + standard_properties, + { + Ok(WasmCode { + standard_properties, + children: Vec::new(), + phantom: PhantomData, + }) + } +); diff --git a/src/wasm/comment.rs b/src/wasm/comment.rs index 22489a9..79585ab 100644 --- a/src/wasm/comment.rs +++ b/src/wasm/comment.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmComment<'s> { to_wasm!( WasmComment<'s>, Comment<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/comment_block.rs b/src/wasm/comment_block.rs index ca56925..ad52983 100644 --- a/src/wasm/comment_block.rs +++ b/src/wasm/comment_block.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmCommentBlock<'s> { to_wasm!( WasmCommentBlock<'s>, CommentBlock<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/diary_sexp.rs b/src/wasm/diary_sexp.rs index 14735ee..bdd92ef 100644 --- a/src/wasm/diary_sexp.rs +++ b/src/wasm/diary_sexp.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmDiarySexp<'s> { to_wasm!( WasmDiarySexp<'s>, DiarySexp<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/document.rs b/src/wasm/document.rs index fc6ef7b..2057fc2 100644 --- a/src/wasm/document.rs +++ b/src/wasm/document.rs @@ -23,9 +23,20 @@ pub(crate) struct WasmDocument<'s> { to_wasm!( WasmDocument<'s>, Document<'s>, + original, wasm_context, standard_properties, { + let additional_properties: Vec<(String, &str)> = original + .get_additional_properties() + .map(|node_property| { + ( + format!(":{}", node_property.property_name.to_uppercase()), + node_property.value.unwrap_or(""), + ) + }) + .collect(); + Ok(WasmDocument { standard_properties, additional_properties: Vec::new(), diff --git a/src/wasm/drawer.rs b/src/wasm/drawer.rs index 5f875b5..2a04cf5 100644 --- a/src/wasm/drawer.rs +++ b/src/wasm/drawer.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmDrawer<'s> { to_wasm!( WasmDrawer<'s>, Drawer<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/dynamic_block.rs b/src/wasm/dynamic_block.rs index 7c343de..4a5d1b6 100644 --- a/src/wasm/dynamic_block.rs +++ b/src/wasm/dynamic_block.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmDynamicBlock<'s> { to_wasm!( WasmDynamicBlock<'s>, DynamicBlock<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/entity.rs b/src/wasm/entity.rs index be6dcfc..5ad38d4 100644 --- a/src/wasm/entity.rs +++ b/src/wasm/entity.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmEntity<'s> { to_wasm!( WasmEntity<'s>, Entity<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/example_block.rs b/src/wasm/example_block.rs index 0f8d4e6..2f0a551 100644 --- a/src/wasm/example_block.rs +++ b/src/wasm/example_block.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmExampleBlock<'s> { to_wasm!( WasmExampleBlock<'s>, ExampleBlock<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/export_block.rs b/src/wasm/export_block.rs index e564b6a..89a5930 100644 --- a/src/wasm/export_block.rs +++ b/src/wasm/export_block.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmExportBlock<'s> { to_wasm!( WasmExportBlock<'s>, ExportBlock<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/export_snippet.rs b/src/wasm/export_snippet.rs index f9d8adb..0a5dc7d 100644 --- a/src/wasm/export_snippet.rs +++ b/src/wasm/export_snippet.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmExportSnippet<'s> { to_wasm!( WasmExportSnippet<'s>, ExportSnippet<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/fixed_width_area.rs b/src/wasm/fixed_width_area.rs index 6555c93..fb41a71 100644 --- a/src/wasm/fixed_width_area.rs +++ b/src/wasm/fixed_width_area.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmFixedWidthArea<'s> { to_wasm!( WasmFixedWidthArea<'s>, FixedWidthArea<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/footnote_definition.rs b/src/wasm/footnote_definition.rs index 342411a..ebafefe 100644 --- a/src/wasm/footnote_definition.rs +++ b/src/wasm/footnote_definition.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmFootnoteDefinition<'s> { to_wasm!( WasmFootnoteDefinition<'s>, FootnoteDefinition<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/footnote_reference.rs b/src/wasm/footnote_reference.rs index 029cd92..4caa158 100644 --- a/src/wasm/footnote_reference.rs +++ b/src/wasm/footnote_reference.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmFootnoteReference<'s> { to_wasm!( WasmFootnoteReference<'s>, FootnoteReference<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/headline.rs b/src/wasm/headline.rs index 37db9cd..0faf621 100644 --- a/src/wasm/headline.rs +++ b/src/wasm/headline.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmHeadline<'s> { to_wasm!( WasmHeadline<'s>, Heading<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/horizontal_rule.rs b/src/wasm/horizontal_rule.rs index 126ebfd..e15684d 100644 --- a/src/wasm/horizontal_rule.rs +++ b/src/wasm/horizontal_rule.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmHorizontalRule<'s> { to_wasm!( WasmHorizontalRule<'s>, HorizontalRule<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/inline_babel_call.rs b/src/wasm/inline_babel_call.rs index bcc99fe..51e73af 100644 --- a/src/wasm/inline_babel_call.rs +++ b/src/wasm/inline_babel_call.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmInlineBabelCall<'s> { to_wasm!( WasmInlineBabelCall<'s>, InlineBabelCall<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/inline_source_block.rs b/src/wasm/inline_source_block.rs index b9e6774..28a3eaa 100644 --- a/src/wasm/inline_source_block.rs +++ b/src/wasm/inline_source_block.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmInlineSourceBlock<'s> { to_wasm!( WasmInlineSourceBlock<'s>, InlineSourceBlock<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/italic.rs b/src/wasm/italic.rs index 9931272..954b727 100644 --- a/src/wasm/italic.rs +++ b/src/wasm/italic.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmItalic<'s> { to_wasm!( WasmItalic<'s>, Italic<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/keyword.rs b/src/wasm/keyword.rs index f5ed481..5d33318 100644 --- a/src/wasm/keyword.rs +++ b/src/wasm/keyword.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmKeyword<'s> { to_wasm!( WasmKeyword<'s>, Keyword<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/latex_environment.rs b/src/wasm/latex_environment.rs index 0ad0928..638f7fd 100644 --- a/src/wasm/latex_environment.rs +++ b/src/wasm/latex_environment.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmLatexEnvironment<'s> { to_wasm!( WasmLatexEnvironment<'s>, LatexEnvironment<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/latex_fragment.rs b/src/wasm/latex_fragment.rs index 0eff326..46a817a 100644 --- a/src/wasm/latex_fragment.rs +++ b/src/wasm/latex_fragment.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmLatexFragment<'s> { to_wasm!( WasmLatexFragment<'s>, LatexFragment<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/line_break.rs b/src/wasm/line_break.rs index 919aa2a..99c6422 100644 --- a/src/wasm/line_break.rs +++ b/src/wasm/line_break.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmLineBreak<'s> { to_wasm!( WasmLineBreak<'s>, LineBreak<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/macros.rs b/src/wasm/macros.rs index 76f5c27..333086f 100644 --- a/src/wasm/macros.rs +++ b/src/wasm/macros.rs @@ -2,7 +2,7 @@ /// /// This exists to make changing the type signature easier. macro_rules! to_wasm { - ($ostruct:ty, $istruct:ty, $wasm_context:ident, $standard_properties:ident, $fnbody:tt) => { + ($ostruct:ty, $istruct:ty, $original:ident, $wasm_context:ident, $standard_properties:ident, $fnbody:tt) => { impl<'s> ToWasm for $istruct { type Output = $ostruct; @@ -10,6 +10,7 @@ macro_rules! to_wasm { &self, $wasm_context: crate::wasm::to_wasm::ToWasmContext<'_>, ) -> Result { + let $original = self; let $standard_properties = self.to_wasm_standard_properties($wasm_context)?; $fnbody } diff --git a/src/wasm/node_property.rs b/src/wasm/node_property.rs index c05d7ac..726d374 100644 --- a/src/wasm/node_property.rs +++ b/src/wasm/node_property.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmNodeProperty<'s> { to_wasm!( WasmNodeProperty<'s>, NodeProperty<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/org_macro.rs b/src/wasm/org_macro.rs index c7aea52..3cd8cd0 100644 --- a/src/wasm/org_macro.rs +++ b/src/wasm/org_macro.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmOrgMacro<'s> { to_wasm!( WasmOrgMacro<'s>, OrgMacro<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/paragraph.rs b/src/wasm/paragraph.rs index 1d196ee..36cfadc 100644 --- a/src/wasm/paragraph.rs +++ b/src/wasm/paragraph.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmParagraph<'s> { to_wasm!( WasmParagraph<'s>, Paragraph<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/plain_link.rs b/src/wasm/plain_link.rs index a3885eb..65b862a 100644 --- a/src/wasm/plain_link.rs +++ b/src/wasm/plain_link.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmPlainLink<'s> { to_wasm!( WasmPlainLink<'s>, PlainLink<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/plain_list.rs b/src/wasm/plain_list.rs index c7da1b4..3996132 100644 --- a/src/wasm/plain_list.rs +++ b/src/wasm/plain_list.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmPlainList<'s> { to_wasm!( WasmPlainList<'s>, PlainList<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/plain_list_item.rs b/src/wasm/plain_list_item.rs index 0d1f623..f41c115 100644 --- a/src/wasm/plain_list_item.rs +++ b/src/wasm/plain_list_item.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmPlainListItem<'s> { to_wasm!( WasmPlainListItem<'s>, PlainListItem<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/plain_text.rs b/src/wasm/plain_text.rs index 8e610e0..31d2051 100644 --- a/src/wasm/plain_text.rs +++ b/src/wasm/plain_text.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmPlainText<'s> { to_wasm!( WasmPlainText<'s>, PlainText<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/planning.rs b/src/wasm/planning.rs index 2e3b6b6..039c1cd 100644 --- a/src/wasm/planning.rs +++ b/src/wasm/planning.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmPlanning<'s> { to_wasm!( WasmPlanning<'s>, Planning<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/property_drawer.rs b/src/wasm/property_drawer.rs index 36ce6cc..ab19f5a 100644 --- a/src/wasm/property_drawer.rs +++ b/src/wasm/property_drawer.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmPropertyDrawer<'s> { to_wasm!( WasmPropertyDrawer<'s>, PropertyDrawer<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/quote_block.rs b/src/wasm/quote_block.rs index ad1ce75..a78d8ff 100644 --- a/src/wasm/quote_block.rs +++ b/src/wasm/quote_block.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmQuoteBlock<'s> { to_wasm!( WasmQuoteBlock<'s>, QuoteBlock<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/radio_link.rs b/src/wasm/radio_link.rs index 753c349..afa58e3 100644 --- a/src/wasm/radio_link.rs +++ b/src/wasm/radio_link.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmRadioLink<'s> { to_wasm!( WasmRadioLink<'s>, RadioLink<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/radio_target.rs b/src/wasm/radio_target.rs index cfac257..6f6d2d2 100644 --- a/src/wasm/radio_target.rs +++ b/src/wasm/radio_target.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmRadioTarget<'s> { to_wasm!( WasmRadioTarget<'s>, RadioTarget<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/regular_link.rs b/src/wasm/regular_link.rs index 2846b3a..fc9bec3 100644 --- a/src/wasm/regular_link.rs +++ b/src/wasm/regular_link.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmRegularLink<'s> { to_wasm!( WasmRegularLink<'s>, RegularLink<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/section.rs b/src/wasm/section.rs index 0256523..8099c89 100644 --- a/src/wasm/section.rs +++ b/src/wasm/section.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmSection<'s> { to_wasm!( WasmSection<'s>, Section<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/special_block.rs b/src/wasm/special_block.rs index e40800f..9d3d13d 100644 --- a/src/wasm/special_block.rs +++ b/src/wasm/special_block.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmSpecialBlock<'s> { to_wasm!( WasmSpecialBlock<'s>, SpecialBlock<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/src_block.rs b/src/wasm/src_block.rs index 276a878..638564a 100644 --- a/src/wasm/src_block.rs +++ b/src/wasm/src_block.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmSrcBlock<'s> { to_wasm!( WasmSrcBlock<'s>, SrcBlock<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/statistics_cookie.rs b/src/wasm/statistics_cookie.rs index bd258d0..3220cff 100644 --- a/src/wasm/statistics_cookie.rs +++ b/src/wasm/statistics_cookie.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmStatisticsCookie<'s> { to_wasm!( WasmStatisticsCookie<'s>, StatisticsCookie<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/strike_through.rs b/src/wasm/strike_through.rs index bc26892..c5ca112 100644 --- a/src/wasm/strike_through.rs +++ b/src/wasm/strike_through.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmStrikeThrough<'s> { to_wasm!( WasmStrikeThrough<'s>, StrikeThrough<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/subscript.rs b/src/wasm/subscript.rs index 08b20c8..776708f 100644 --- a/src/wasm/subscript.rs +++ b/src/wasm/subscript.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmSubscript<'s> { to_wasm!( WasmSubscript<'s>, Subscript<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/superscript.rs b/src/wasm/superscript.rs index d33bd5a..6c86867 100644 --- a/src/wasm/superscript.rs +++ b/src/wasm/superscript.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmSuperscript<'s> { to_wasm!( WasmSuperscript<'s>, Superscript<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/table.rs b/src/wasm/table.rs index f37331a..152c841 100644 --- a/src/wasm/table.rs +++ b/src/wasm/table.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmTable<'s> { to_wasm!( WasmTable<'s>, Table<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/table_cell.rs b/src/wasm/table_cell.rs index 753fa3c..98c44af 100644 --- a/src/wasm/table_cell.rs +++ b/src/wasm/table_cell.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmTableCell<'s> { to_wasm!( WasmTableCell<'s>, TableCell<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/table_row.rs b/src/wasm/table_row.rs index 8a638b3..fd3e919 100644 --- a/src/wasm/table_row.rs +++ b/src/wasm/table_row.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmTableRow<'s> { to_wasm!( WasmTableRow<'s>, TableRow<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/target.rs b/src/wasm/target.rs index 4cb564f..54d2900 100644 --- a/src/wasm/target.rs +++ b/src/wasm/target.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmTarget<'s> { to_wasm!( WasmTarget<'s>, Target<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/timestamp.rs b/src/wasm/timestamp.rs index 779b96f..b24d3aa 100644 --- a/src/wasm/timestamp.rs +++ b/src/wasm/timestamp.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmTimestamp<'s> { to_wasm!( WasmTimestamp<'s>, Timestamp<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/underline.rs b/src/wasm/underline.rs index 1cc8cd4..d35e557 100644 --- a/src/wasm/underline.rs +++ b/src/wasm/underline.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmUnderline<'s> { to_wasm!( WasmUnderline<'s>, Underline<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/verbatim.rs b/src/wasm/verbatim.rs index 566f6ec..927dd19 100644 --- a/src/wasm/verbatim.rs +++ b/src/wasm/verbatim.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmVerbatim<'s> { to_wasm!( WasmVerbatim<'s>, Verbatim<'s>, + original, wasm_context, standard_properties, { diff --git a/src/wasm/verse_block.rs b/src/wasm/verse_block.rs index 28d81d8..da4f8c6 100644 --- a/src/wasm/verse_block.rs +++ b/src/wasm/verse_block.rs @@ -21,6 +21,7 @@ pub(crate) struct WasmVerseBlock<'s> { to_wasm!( WasmVerseBlock<'s>, VerseBlock<'s>, + original, wasm_context, standard_properties, {