should parse empty front matter:
.
---
---
# Head
.
Head
.
should parse basic front matter:
.
---
x: 1
---
# Head
.
Head
.
should parse until triple dots:
.
---
x: 1
...
# Head
.
Head
.
should parse front matter with indentation:
.
---
title: Associative arrays
people:
name: John Smith
age: 33
morePeople: { name: Grace Jones, age: 21 }
---
# Head
.
Head
.
should ignore spaces after front matter delimiters:
.
---
title: Associative arrays
people:
name: John Smith
age: 33
morePeople: { name: Grace Jones, age: 21 }
---
# Head
.
Head
.
should ignore front matter with less than 3 opening dashes:
.
--
x: 1
--
# Head
.
--
x: 1
Head
.
should require front matter have matching number of opening and closing dashes:
.
----
x: 1
---
# Head
.
x: 1
Head
.