pandoc “cannot parse yaml header” when converting md to pdf

妖精的绣舞 提交于 2019-11-30 06:18:47

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!