From 9a05b9ad971bb15adb1b3bb8f0b192cca94633ec Mon Sep 17 00:00:00 2001 From: crasm Date: Tue, 20 Dec 2016 08:54:52 -0500 Subject: [PATCH] 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. --- content/content/front-matter.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/content/front-matter.md b/content/content/front-matter.md index 017fa98c7..e61a48f55 100644 --- a/content/content/front-matter.md +++ b/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"