pandoc "cannot parse yaml header" when converting md to pdf

DarkKight666

I am trying to convert a markdown document to pdf using pandoc, and it was working fine until it just started to show an error:

pandoc: Could not parse YAML header: did not find expected alphabetic or numeric character "source" (line 32, column 85
pandoc: YAML header is not an object "source" (line 17, column 1)
pandoc: Could not parse YAML header: did not find expected alphabetic or numeric character "source" (line 8, column 91)

Lines 32 and 8 are blank lines between paragraphs, and all that's on line 17 is "---".

I don't even know what YAML is, but I don't want to use it, just MD->LaTeX->PDF.

Searched for these errors but could only find stuff mentioning YAML, not the errors.

Any help would be appreciated.

John MacFarlane

See http://johnmacfarlane.net/pandoc/README.html#yaml-metadata-block

There must be something in your document that looks like a YAML metadata block, but isn't. Such a block would start with --- on a line by itself and end with --- or ... on a line by itself. The line numbers in the error message refer to lines inside the metadata block, not to lines of the document.

By the way, you can turn off YAML metadata block parsing entirely by putting

--from markdown-yaml_metadata_block

in your pandoc command line.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

pandoc "cannot parse yaml header" when converting md to pdf

From Dev

Converting .md to .pdf, with images

From Dev

Left-align text when converting from md to pdf

From Dev

How can I suppress the date when using pandoc to convert md to pdf?

From Dev

pandoc doesn't text-wrap code blocks when converting to pdf

From Dev

Converting all files in a folder to md using pandoc on Mac

From Dev

Pandoc: no line wrapping when converting to HTML

From Dev

Pandoc converting HTML tables to PDF results in non-wrapped tables

From Dev

Pandoc converting HTML tables to PDF results in non-wrapped tables

From Dev

Table spacing issue converting to PDF via LaTeX with pandoc

From Dev

Tilde over n when when converting from markdown to latex with pandoc

From Dev

Why pandoc keeps span and div tags when converting html to markdown?

From Dev

Retain YAML data when converting markdown to html with pandoc

From Dev

Pandoc drops "unknown" HTML elements when converting to markdown

From Dev

How to keep comments in YAML header when converting w/ pandoc

From Dev

How to keep comments in YAML header when converting w/ pandoc

From Dev

Retain YAML data when converting markdown to html with pandoc

From Dev

knitr -pandoc-citeproc error when compiling pdf output

From Dev

Inputenc/Pandoc error when knit to Pdf on Rstudio Version 0.98.994

From Dev

Blank pages when converting to PDF with TuesPechkin

From Dev

COMException when converting OneNote into HTML (but it works for PDF)

From Dev

iText XMLWorker table weirdness when converting to PDF

From Dev

issue when converting html string to pdf using evo pdf library

From Dev

Pandoc markdown to PDF

From Dev

Convert a .docx to a .pdf with pandoc

From Java

Add proper syntax name to code blocks when converting from HTML to Markdown with Pandoc

From Dev

table width not set in iTextSharp when converting html to PDF

From Dev

How to get landscape orientation when converting IPython notebook to PDF?

From Dev

Custom font works in Windows but not in Ubuntu when converting html to pdf with itext

Related Related

  1. 1

    pandoc "cannot parse yaml header" when converting md to pdf

  2. 2

    Converting .md to .pdf, with images

  3. 3

    Left-align text when converting from md to pdf

  4. 4

    How can I suppress the date when using pandoc to convert md to pdf?

  5. 5

    pandoc doesn't text-wrap code blocks when converting to pdf

  6. 6

    Converting all files in a folder to md using pandoc on Mac

  7. 7

    Pandoc: no line wrapping when converting to HTML

  8. 8

    Pandoc converting HTML tables to PDF results in non-wrapped tables

  9. 9

    Pandoc converting HTML tables to PDF results in non-wrapped tables

  10. 10

    Table spacing issue converting to PDF via LaTeX with pandoc

  11. 11

    Tilde over n when when converting from markdown to latex with pandoc

  12. 12

    Why pandoc keeps span and div tags when converting html to markdown?

  13. 13

    Retain YAML data when converting markdown to html with pandoc

  14. 14

    Pandoc drops "unknown" HTML elements when converting to markdown

  15. 15

    How to keep comments in YAML header when converting w/ pandoc

  16. 16

    How to keep comments in YAML header when converting w/ pandoc

  17. 17

    Retain YAML data when converting markdown to html with pandoc

  18. 18

    knitr -pandoc-citeproc error when compiling pdf output

  19. 19

    Inputenc/Pandoc error when knit to Pdf on Rstudio Version 0.98.994

  20. 20

    Blank pages when converting to PDF with TuesPechkin

  21. 21

    COMException when converting OneNote into HTML (but it works for PDF)

  22. 22

    iText XMLWorker table weirdness when converting to PDF

  23. 23

    issue when converting html string to pdf using evo pdf library

  24. 24

    Pandoc markdown to PDF

  25. 25

    Convert a .docx to a .pdf with pandoc

  26. 26

    Add proper syntax name to code blocks when converting from HTML to Markdown with Pandoc

  27. 27

    table width not set in iTextSharp when converting html to PDF

  28. 28

    How to get landscape orientation when converting IPython notebook to PDF?

  29. 29

    Custom font works in Windows but not in Ubuntu when converting html to pdf with itext

HotTag

Archive