Add TOML title syntax to MD041/first-line-h1 default RegExp (fixes #77).

This commit is contained in:
David Anson 2017-10-24 22:15:03 -07:00
parent 77e27cbe09
commit 0c38635afe
7 changed files with 26 additions and 4 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 header"
+++
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 header"
+++
Some plain text here.