When using the task perun/pandoc to convert .org files, we want to continue using yaml-frontmatter for the metadata of posts. However, before passing the post to the pandoc binary itself, we we want to remove that yaml-frontmatter. Otherwise it will be part of the converted output html file.
I haven't found an option to ignore yaml frontmatter within pandoc itself. It ignores it automatically when the formatter is set to markdown. However, it doesn't ignore it for other formatters. Perun already features the option to strip the frontmatter. Yet, it was hard-coded to never use that option.
I'm reverting the hard coding, because: I have no clue when we actually need to keep the front-matter as the metadata seems to be properly used in the setup even with this var to set false.
We are using this for https://200ok.ch already. The PR to enable it for us was:
When using the task
perun/pandoc
to convert .org files, we want to continue using yaml-frontmatter for the metadata of posts. However, before passing the post to thepandoc
binary itself, we we want to remove that yaml-frontmatter. Otherwise it will be part of the converted output html file.I haven't found an option to ignore yaml frontmatter within
pandoc
itself. It ignores it automatically when the formatter is set tomarkdown
. However, it doesn't ignore it for other formatters. Perun already features the option to strip the frontmatter. Yet, it was hard-coded to never use that option.I'm reverting the hard coding, because: I have no clue when we actually need to keep the front-matter as the metadata seems to be properly used in the setup even with this var to set
false
.We are using this for https://200ok.ch already. The PR to enable it for us was: