-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
code block containing line break with new line starting with html fails #501
Labels
category: mixed content
L2 - annoying
Similar to L1 - broken but there is a known workaround available for the issue
Comments
Interesting. |
Problem here is in the block lexing phase: > 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> |
Reopening. |
Categorize for #985 |
Feder1co5oave
added
category: mixed content
L2 - annoying
Similar to L1 - broken but there is a known workaround available for the issue
labels
Feb 23, 2018
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
category: mixed content
L2 - annoying
Similar to L1 - broken but there is a known workaround available for the issue
This fails
giving
but this doesn't:
giving
The text was updated successfully, but these errors were encountered: