Closed
Description
$ echo $'---\ntitle: "*hello* world"\n---\n\ngreetings' | pandoc -s -tnative
Pandoc (Meta {unMeta = fromList [("title",MetaInlines [Emph [Str "hello"],Space,Str "world"])]})
[Para [Str "greetings"]]
$ # (ok, that was good)
$ echo $'---\ntitle: "*hello* world"\n---\n\ngreetings' | pandoc -s -tmarkdown
---
title: *hello* world
---
greetings
$ # Gandalf says: You shall not Parse.
$ echo $'---\ntitle: "*hello* world"\n---\n\ngreetings' | pandoc -s -tmarkdown | pandoc -s -tmarkdown
----------------------
title: *hello* world
----------------------
greetings
$ # no YAML, but this table is your consolation prize
Notice that the title string begins with a punctuation character.
The string is quoted in the first input, but in the unparsed markdown it is unquoted.
An unquoted title with markup causes the markdown parser to fail to recognize the YAML block.
Probable fix: Have the YAML block unparsed add quotes more often.
Metadata
Metadata
Assignees
Labels
No labels