mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Ignore TOML front matter in addition to YAML (fixes #63).
This commit is contained in:
parent
0e8cb8f0dd
commit
5bea80f5cd
9 changed files with 38 additions and 8 deletions
|
|
@ -3,8 +3,8 @@
|
|||
// Regular expression for matching common newline characters
|
||||
module.exports.newLineRe = /\r\n|\r|\n/;
|
||||
|
||||
// Regular expression for matching common front matter
|
||||
module.exports.frontMatterRe = /^---$[^]*?^---$(\r\n|\r|\n)/m;
|
||||
// Regular expression for matching common front matter (YAML and TOML)
|
||||
module.exports.frontMatterRe = /^(---|\+\+\+)$[^]*?^\1$(\r\n|\r|\n)/m;
|
||||
|
||||
// Regular expression for matching inline disable/enable comments
|
||||
module.exports.inlineCommentRe =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue