Allow different beginning and ending frontmatter delimiters.

This commit is contained in:
Caleb
2018-02-08 19:18:33 -07:00
committed by Shawn Erquhart
parent f97e2d2853
commit d10f97f561
3 changed files with 35 additions and 2 deletions

View File

@ -102,7 +102,7 @@ You may also specify a custom `extension` not included in the list above, as lon
- `toml-frontmatter`: same as the `frontmatter` format above, except frontmatter will be both parsed and saved only as TOML, followed by unparsed body text. The default delimiter for this option is `+++`.
- `json-frontmatter`: same as the `frontmatter` format above, except frontmatter will be both parsed and saved as JSON, followed by unparsed body text. The default delimiter for this option is `{` `}`.
`frontmatter_delimiter`: if you have an explicit frontmatter format declared, this option allows you to specify a custom delimiter like `~~~`.
`frontmatter_delimiter`: if you have an explicit frontmatter format declared, this option allows you to specify a custom delimiter like `~~~`. If you need different beginning and ending delimiters, you can use an array like `["(", ")"]`.
### `slug`