parser: Accept JSON frontmatter without leading "{\n"
authorcrasm <crasm@git.1.email.vczf.io>
Tue, 20 Dec 2016 13:54:52 +0000 (08:54 -0500)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 13 Mar 2017 16:19:03 +0000 (17:19 +0100)
commitede452d34ef82a2d6949bf0c5a4584caf3ae03bc
treed387ff6749adc0ef10a5dbb1ba9a22d3642f8be8
parent62efcdfed443239711910592e2d35cd955caea84
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.
docs/content/content/front-matter.md
parser/page.go
parser/parse_frontmatter_test.go