-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
YAML metadata incorrectly interpreted when Markdown dialect is specified #2827
Comments
Try:
+++ beatngu13 [Mar 30 16 05:54 ]:
|
That does the trick. Thanks for your prompt reply! |
|
So should it be: pandoc \
--from=gfm+yaml_metadata_block \
--to=latex \
--output=my_document.pdf \
title.yml \
my_document.md I tried that, and it didn't seem to process it correctly. |
the yaml_metadata_block extension is not supported for gfm at this point. |
Thank you for the clarification! |
I am so glad I found this issue. ) |
I usually use a YAML header to specify various variables before I transform my Markdown documents into other formats, e.g. PDF.
Since Pandoc supports GitHub Flavored Markdown, I often prefer this variant because it provides an additional set of useful features. One of this features is to automatically interpret URLs as hyperlinks.
The MWE (change the suffix to
.md
) attached to this issue contains a simple YAML header where I set the color for those links. Unfortunately this is only taken into account if I use CommonMark syntax and the following command line:pandoc mwe.md --latex-engine=xelatex -o mwe.pdf
If I add
--from=markdown_github
the links are recognized, but they're not colored and the YAML metadata is interpreted as plain text.I use Pandoc 1.17.0.2 on Mac OS X El Capitan (10.11.4).
The text was updated successfully, but these errors were encountered: