-
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
Fixed https://github.com/chjj/marked/issues/465 #974
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,8 @@ | |
<hr> | ||
|
||
<blockquote> | ||
<p>hello</p> | ||
<p>hello | ||
[2]: hello</p> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. from def_blocks.text:
I'm not sure this should/should not be parsed as a link definition. It is outside a blockquote. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As we now know, this edit was correct because we have rule A link reference definition cannot interrupt a paragraph. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. http://spec.commonmark.org/0.28/#example-210 |
||
</blockquote> | ||
|
||
|
||
|
@@ -24,5 +25,6 @@ | |
<blockquote> | ||
<p>foo | ||
bar | ||
[1]: foo | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's a problem in https://github.com/KostyaTretyak/marked/blob/98ac7a43958014832788b9d01580f394c84bfb27/test/tests/def_blocks.text : There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As we now know, this edit was correct because we have rule A link reference definition cannot interrupt a paragraph. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is no broad consensus on this one: However, commonmark.js parses it as you wrote. |
||
bar</p> | ||
</blockquote> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is plain wrong, cannot remove this without changing the block.blockquote regex