Hrishikesh Barman
2023-08-25 5c6d1e27baef74a42cc292276c5832b010a38fd5
refs
author Hrishikesh Barman <geekodour@users.noreply.github.com>
Friday, August 25, 2023 17:25 +0000
committer GitHub <noreply@github.com>
Friday, August 25, 2023 17:25 +0000
commit5c6d1e27baef74a42cc292276c5832b010a38fd5
tree e674a3468a2cc6e0a1c18167b933cee3a34640f3 tree | zip | gz
parent 340e3ef5116cd99c8ddfdbb3d9e0bbd914e07825 view | diff
feat(plugins): add toml support for frontmatter (#418)

* feat(plugins): add toml support for frontmatter

Currently frontmatter is expected to be yaml, with delimiter set to
"---". This might not always be the case, for example ox-hugo(a hugo
exporter for org-mode files) exports in toml format with the delimiter
set to "+++" by default.

With this change, the users will be able use frontmatter plugin to
support this toml frontmatter format.

Example usage: `Plugin.FrontMatter({delims: "+++", language: 'toml'})`

- [0] https://ox-hugo.scripter.co/doc/org-meta-data-to-hugo-front-matter/

* fixup! feat(plugins): add toml support for frontmatter
3 files modified
11 ■■■■■ changed files
package-lock.json 6 ●●●●● diff | view | raw | blame | history
package.json 1 ●●●● diff | view | raw | blame | history
quartz/plugins/transformers/frontmatter.ts 4 ●●●● diff | view | raw | blame | history