Support front matter title property override for MD041/first-line-h1 (fixes #53).

This commit is contained in:
David Anson 2017-05-06 15:25:14 -07:00
parent 4ae649c462
commit 942f0600d2
18 changed files with 131 additions and 12 deletions

View file

@ -0,0 +1,7 @@
{
"default": true,
"MD013": false,
"MD041": {
"front_matter_title": "^\\s*alternate="
}
}

View file

@ -0,0 +1,4 @@
---
alternate="Welcome to Jekyll!"
---
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).

View file

@ -0,0 +1,7 @@
{
"default": true,
"MD013": false,
"MD041": {
"front_matter_title": ""
}
}

View file

@ -0,0 +1,7 @@
---
layout: post
title: "Welcome to Jekyll!"
date: 2015-11-17 16:16:01 -0600
categories: jekyll update
---
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). {MD041}

View file

@ -0,0 +1,5 @@
{
"default": true,
"MD013": false,
"MD041": true
}

View file

@ -0,0 +1,9 @@
---
layout: post
notitle: "Welcome to Jekyll!"
date: 2015-11-17 16:16:01 -0600
categories: jekyll update
---
# Top level header
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).

View file

@ -0,0 +1,5 @@
{
"default": true,
"MD013": false,
"MD041": true
}

View file

@ -0,0 +1,7 @@
---
layout: post
notitle: "Welcome to Jekyll!"
date: 2015-11-17 16:16:01 -0600
categories: jekyll update
---
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). {MD041}

View file

@ -0,0 +1,5 @@
{
"default": true,
"MD013": false,
"MD041": true
}

View file

@ -0,0 +1,9 @@
---
layout: post
title: "Welcome to Jekyll!"
date: 2015-11-17 16:16:01 -0600
categories: jekyll update
---
# Top level header
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).

View file

@ -0,0 +1,5 @@
{
"default": true,
"MD013": false,
"MD041": true
}

View file

@ -0,0 +1,7 @@
---
layout: post
title: "Welcome to Jekyll!"
date: 2015-11-17 16:16:01 -0600
categories: jekyll update
---
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).