-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Prelude.read: no parse" when giving -M with --template #5177
Comments
Simple repro:
|
I confirm that this issue affects current HEAD (5101f43). |
Interestingly even:
The |
Reading to
But |
Stack trace:
|
Filed an upstream issue: haskell-hvr/HsYAML#7 |
@mb21 - Thanks for tracking this down!
|
Interestingly we don't get the error if you include this metadata value in the YAML metadata in a markdown file. Only with -M. |
OK, we should be able to fix this in pandoc by using the failsafe schema instead of the json schema, which is used by default with |
Note also this workaround:
|
condition
markdown/template.tex
markdown/markdown.md
how to reproduce
input:
pandoc -f markdown -t latex -M meta='1e' --template markdown/template.tex markdown/markdown.md
output:
pandoc: Prelude.read: no parse
changing to
meta=''
stops errormeta='1e|3e|5e|7e|9e'
causes error but'e'
does notremoving quote does not stop error
position of
-M meta=1e
does not stop errorsimilar with Error when html constains <ol start=''> #5162 ?
The text was updated successfully, but these errors were encountered: