mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Update newline handling to match latest CommonMark specification.
This commit is contained in:
parent
65f6d38978
commit
220a1d78a9
3 changed files with 3 additions and 17 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
// Regular expression for matching common newline characters
|
||||
// See NEWLINES_RE in markdown-it/lib/rules_core/normalize.js
|
||||
const newLineRe = /\r[\n\u0085]?|[\n\u2424\u2028\u0085]/;
|
||||
const newLineRe = /\r\n?|\n/;
|
||||
module.exports.newLineRe = newLineRe;
|
||||
|
||||
// Regular expression for matching common front matter (YAML and TOML)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue