Update newline handling to match latest CommonMark specification.

This commit is contained in:
David Anson 2019-09-14 13:53:35 -07:00
parent 65f6d38978
commit 220a1d78a9
3 changed files with 3 additions and 17 deletions

View file

@ -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)