Support JSON front matter as used by the Hugo site generator (fixes #270).

This commit is contained in:
David Anson 2020-11-14 19:40:15 -08:00
parent 47d82d6fd4
commit bb157b2ce7
11 changed files with 60 additions and 7 deletions

View file

@ -0,0 +1,6 @@
{
"default": true,
"MD041": {
"front_matter_title": "^\\s*\"alternate\"\\s*:"
}
}

View file

@ -0,0 +1,6 @@
{
"date": "2017-01-26T22:17:00+02:00",
"alternate": "My document title and heading"
}
Some plain text here.

View file

@ -0,0 +1,4 @@
{
"default": true,
"MD041": true
}

View file

@ -0,0 +1,6 @@
{
"date": "2017-01-26T22:17:00+02:00",
"title": "My document title and heading"
}
Some plain text here.

View file

@ -0,0 +1,4 @@
{
"default": true,
"MD041": true
}

View file

@ -0,0 +1,6 @@
{
"date": "2017-01-26T22:17:00+02:00",
"title": "My document title and heading"
}
Some plain text here.

View file

@ -0,0 +1,4 @@
{
"default": true,
"MD041": true
}

View file

@ -0,0 +1,13 @@
{
"title": "Another Hugo Post",
"description": "Nothing special, but one post is boring.",
"date": "2014-09-02",
"categories": [ "example", "configuration" ],
"tags": [
"example",
"hugo",
"toml"
],
}
# Heading {MD025}