You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
code block containing line break with new line starting with html fails #501
>marked.lexer('Additionally, arbitrary scripts can be executed by running `npm run-script\n<pkg> <stage>`. Test.')[{type: 'paragraph',text: 'Additionally, arbitrary scripts can be executed by running `npm run-script'},{type: 'paragraph',text: '<pkg> <stage>`. Test.'},links: {}]
Since the first item on the new line looks like an html tag, the regex stops matching the current paragraph. Then it opens a new one.
As a reference, commonmark.js 0.28.1 renders them both as the same:
Additionally, arbitrary scripts can be executed by running `npm run-script
<pkg> <stage>`. Test.
Additionally, arbitrary scripts can be executed by running `npm
run-script <pkg> <stage>`. Test.
<p>Additionally, arbitrary scripts can be executed by running <code>npm run-script <pkg> <stage></code>. Test.</p><p>Additionally, arbitrary scripts can be executed by running <code>npm run-script <pkg> <stage></code>. Test.</p>
Activity
joshbruce commentedon Dec 25, 2017
#983
Feder1co5oave commentedon Jan 10, 2018
Interesting.
This is still a bug in 0.3.12
Feder1co5oave commentedon Jan 15, 2018
Problem here is in the block lexing phase:
Since the first item on the new line looks like an html tag, the regex stops matching the current paragraph. Then it opens a new one.
Feder1co5oave commentedon Jan 19, 2018
As a reference, commonmark.js 0.28.1 renders them both as the same:
joshbruce commentedon Jan 20, 2018
Reopening.
Feder1co5oave commentedon Jan 25, 2018
Categorize for #985