diff options
author | crasm <crasm@git.1.email.vczf.io> | 2016-12-20 08:54:52 -0500 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-03-13 17:19:03 +0100 |
commit | ede452d34ef82a2d6949bf0c5a4584caf3ae03bc (patch) | |
tree | d387ff6749adc0ef10a5dbb1ba9a22d3642f8be8 /docs | |
parent | 62efcdfed443239711910592e2d35cd955caea84 (diff) |
parser: Accept JSON frontmatter without leading "{\n"
Accept JSON frontmatter without leading "{\n" so that one line
frontmatters such as `{"param":"paramvalue"}` no longer silently render
empty html.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/content/content/front-matter.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/content/content/front-matter.md b/docs/content/content/front-matter.md index 017fa98c7..e61a48f55 100644 --- a/docs/content/content/front-matter.md +++ b/docs/content/content/front-matter.md @@ -21,7 +21,7 @@ Supported formats: * **[TOML][]**, identified by '`+++`'. * **[YAML][]**, identified by '`---`'. - * **[JSON][]**, a single JSON object which is surrounded by '`{`' and '`}`', each on their own line. + * **[JSON][]**, a single JSON object which is surrounded by '`{`' and '`}`', followed by a newline. [TOML]: https://github.com/toml-lang/toml "Tom's Obvious, Minimal Language" [YAML]: http://www.yaml.org/ "YAML Ain't Markup Language" |