mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 22:40:13 +01:00
Update MD041/first-line-heading to add an allow_preamble parameter (fixes #1416).
This commit is contained in:
parent
c061888937
commit
62dc79864d
17 changed files with 538 additions and 163 deletions
48
lib/configuration-strict.d.ts
vendored
48
lib/configuration-strict.d.ts
vendored
|
|
@ -406,14 +406,14 @@ export interface ConfigurationStrict {
|
|||
MD025?:
|
||||
| boolean
|
||||
| {
|
||||
/**
|
||||
* Heading level
|
||||
*/
|
||||
level?: number;
|
||||
/**
|
||||
* RegExp for matching title in front matter
|
||||
*/
|
||||
front_matter_title?: string;
|
||||
/**
|
||||
* Heading level
|
||||
*/
|
||||
level?: number;
|
||||
};
|
||||
/**
|
||||
* MD025/single-title/single-h1 : Multiple top-level headings in the same document : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md025.md
|
||||
|
|
@ -421,14 +421,14 @@ export interface ConfigurationStrict {
|
|||
"single-title"?:
|
||||
| boolean
|
||||
| {
|
||||
/**
|
||||
* Heading level
|
||||
*/
|
||||
level?: number;
|
||||
/**
|
||||
* RegExp for matching title in front matter
|
||||
*/
|
||||
front_matter_title?: string;
|
||||
/**
|
||||
* Heading level
|
||||
*/
|
||||
level?: number;
|
||||
};
|
||||
/**
|
||||
* MD025/single-title/single-h1 : Multiple top-level headings in the same document : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md025.md
|
||||
|
|
@ -436,14 +436,14 @@ export interface ConfigurationStrict {
|
|||
"single-h1"?:
|
||||
| boolean
|
||||
| {
|
||||
/**
|
||||
* Heading level
|
||||
*/
|
||||
level?: number;
|
||||
/**
|
||||
* RegExp for matching title in front matter
|
||||
*/
|
||||
front_matter_title?: string;
|
||||
/**
|
||||
* Heading level
|
||||
*/
|
||||
level?: number;
|
||||
};
|
||||
/**
|
||||
* MD026/no-trailing-punctuation : Trailing punctuation in heading : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md026.md
|
||||
|
|
@ -730,13 +730,17 @@ export interface ConfigurationStrict {
|
|||
| boolean
|
||||
| {
|
||||
/**
|
||||
* Heading level
|
||||
* Allow content before first heading
|
||||
*/
|
||||
level?: number;
|
||||
allow_preamble?: boolean;
|
||||
/**
|
||||
* RegExp for matching title in front matter
|
||||
*/
|
||||
front_matter_title?: string;
|
||||
/**
|
||||
* Heading level
|
||||
*/
|
||||
level?: number;
|
||||
};
|
||||
/**
|
||||
* MD041/first-line-heading/first-line-h1 : First line in a file should be a top-level heading : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md041.md
|
||||
|
|
@ -745,13 +749,17 @@ export interface ConfigurationStrict {
|
|||
| boolean
|
||||
| {
|
||||
/**
|
||||
* Heading level
|
||||
* Allow content before first heading
|
||||
*/
|
||||
level?: number;
|
||||
allow_preamble?: boolean;
|
||||
/**
|
||||
* RegExp for matching title in front matter
|
||||
*/
|
||||
front_matter_title?: string;
|
||||
/**
|
||||
* Heading level
|
||||
*/
|
||||
level?: number;
|
||||
};
|
||||
/**
|
||||
* MD041/first-line-heading/first-line-h1 : First line in a file should be a top-level heading : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md041.md
|
||||
|
|
@ -760,13 +768,17 @@ export interface ConfigurationStrict {
|
|||
| boolean
|
||||
| {
|
||||
/**
|
||||
* Heading level
|
||||
* Allow content before first heading
|
||||
*/
|
||||
level?: number;
|
||||
allow_preamble?: boolean;
|
||||
/**
|
||||
* RegExp for matching title in front matter
|
||||
*/
|
||||
front_matter_title?: string;
|
||||
/**
|
||||
* Heading level
|
||||
*/
|
||||
level?: number;
|
||||
};
|
||||
/**
|
||||
* MD042/no-empty-links : No empty links : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md042.md
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue