Browse Source

Reverted c7d4f7b (no fix needed)

pull/41/head
Vitaly Puzrin 10 years ago
parent
commit
20e8d93e8d
  1. 2
      lib/helpers/parse_link_title.js
  2. 8
      test/fixtures/markdown-it/commonmark_extras.txt

2
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) {

8
test/fixtures/markdown-it/commonmark_extras.txt

@ -188,15 +188,11 @@ bar&gt;)</p>
Coverage. parseLinkTitle
.
[foo](bar "ba)
.
<p>[foo](bar &quot;ba)</p>
.
Coverage. parseLinkTitle
.
[foo](bar "ba\
z")
.
<p><a href="bar" title="ba
<p>[foo](bar &quot;ba)</p>
<p><a href="bar" title="ba\
z">foo</a></p>
.
Loading…
Cancel
Save