caltechlibrary / mkpage

MkPage Project includes tools for rendering static websites including a Pandoc preprocessor
https://caltechlibrary.github.io/mkpage
Other
9 stars 1 forks source link

correction to frontmatter cli, SplitFrontMatter(), markdownProcessor() #9

Closed rsdoiel closed 5 years ago

rsdoiel commented 5 years ago

Front matter starting/end with +++ is Toml, --- is Yaml and { and } is JSON based on Go Hugo documentation. frontmatter cli needs to respect this amd jave the option of returning a common JSON object. The two functions in mkpage.go need to be corrected to skip Toml and JSON front matter correctly.

rsdoiel commented 5 years ago

Corrected in v0.0.27 release. Also added support for TOML to JSON and YAML to JSON in frontmatter cli.