diff --git a/org_mode_samples/object/text_markup/double_star.org b/org_mode_samples/object/text_markup/double_star.org new file mode 100644 index 0000000..c758a3d --- /dev/null +++ b/org_mode_samples/object/text_markup/double_star.org @@ -0,0 +1 @@ +foo ** bar ** baz diff --git a/src/parser/text_markup.rs b/src/parser/text_markup.rs index 8a7549f..5cae3f6 100644 --- a/src/parser/text_markup.rs +++ b/src/parser/text_markup.rs @@ -163,8 +163,7 @@ fn text_markup_object<'c>( OrgSource<'s>, ) -> Res, Vec>> + 'c { - let marker_symbol = marker_symbol.to_owned(); - move |context, input: OrgSource<'_>| _text_markup_object(context, input, marker_symbol.as_str()) + move |context, input: OrgSource<'_>| _text_markup_object(context, input, marker_symbol) } #[cfg_attr(feature = "tracing", tracing::instrument(ret, level = "debug"))]