diff --git a/lib/helpers/parse_link_title.js b/lib/helpers/parse_link_title.js index 0f24b40..8ca82a3 100644 --- a/lib/helpers/parse_link_title.js +++ b/lib/helpers/parse_link_title.js @@ -34,7 +34,7 @@ module.exports = function parseLinkTitle(str, pos, max) { if (code === marker) { result.pos = pos + 1; result.lines = lines; - result.str = unescapeMd(str.slice(start + 1, pos).replace(/\\\n/g, '\n')); + result.str = unescapeMd(str.slice(start + 1, pos)); result.ok = true; return result; } else if (code === 0x0A) { diff --git a/test/fixtures/markdown-it/commonmark_extras.txt b/test/fixtures/markdown-it/commonmark_extras.txt index fb37134..5625875 100644 --- a/test/fixtures/markdown-it/commonmark_extras.txt +++ b/test/fixtures/markdown-it/commonmark_extras.txt @@ -188,15 +188,11 @@ bar>)

Coverage. parseLinkTitle . [foo](bar "ba) -. -

[foo](bar "ba)

-. -Coverage. parseLinkTitle -. [foo](bar "ba\ z") . -

foo

-. \ No newline at end of file +.