mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-01-01 21:48:49 +01:00
Update MD041/first-line-h1 to allow secondary headings if a YAML title is present (refs #116).
This commit is contained in:
parent
ed295cd947
commit
c71bb4fbd5
4 changed files with 46 additions and 27 deletions
8
test/front-matter-title-h2.json
Normal file
8
test/front-matter-title-h2.json
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"default": true,
|
||||
"MD002": {
|
||||
"level": 2
|
||||
},
|
||||
"MD013": false,
|
||||
"MD041": true
|
||||
}
|
||||
9
test/front-matter-title-h2.md
Normal file
9
test/front-matter-title-h2.md
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
layout: post
|
||||
title: "Welcome to Jekyll!"
|
||||
date: 2015-11-17 16:16:01 -0600
|
||||
categories: jekyll update
|
||||
---
|
||||
## Secondary heading
|
||||
|
||||
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).
|
||||
Loading…
Add table
Add a link
Reference in a new issue