Closed ketozhang closed 5 years ago
This is basically pandoc territory, not pypandoc. It would be better to ask there.
Well got it, thanks.
From the ability of pypandoc able to get a string from the converter it seems like it can do more. Otherwise the most simplest wrapper would just be a pythonic way to call pypandoc.
We currently do not touch the to be converted file in any way, so that would be new for us. Pandoc itself does something with the metadata: https://pandoc.org/MANUAL.html#extension-yaml_metadata_block
Let's say we have some YAML header in a markdown file like so
Is it possible with pypandoc to extract the "title" variable using pypandoc?
EDIT: There's two ideas I have in mind. One to parse YAML within "---" delimiters. The other begin python-frontmatter.