From 3493d6afaa6586c46898cf8bdb0c45bb70d31f28 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 17 Feb 2020 09:53:36 -0800 Subject: Allow specifying string value in metadata using `!!literal` tag. This is experimental. Normally metadata values are interpreted as markdown, but if the !!literal tag is used they will be interpreted as plain strings. We need to consider whether this can still be implemented if we switch back from HsYAML to yaml for performance reasons. --- test/command/literal-tag.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/command/literal-tag.md (limited to 'test') diff --git a/test/command/literal-tag.md b/test/command/literal-tag.md new file mode 100644 index 000000000..4bbefab7c --- /dev/null +++ b/test/command/literal-tag.md @@ -0,0 +1,10 @@ +``` +% pandoc -t native -s +--- +hi: !!literal '*ook*' +there: '*ook*' +... +^D +Pandoc (Meta {unMeta = fromList [("hi",MetaString "*ook*"),("there",MetaInlines [Emph [Str "ook"]])]}) +[] +``` -- cgit v1.2.3