-
-
Notifications
You must be signed in to change notification settings - Fork 326
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
Reference implementation incorrectly detects setext heading as paragraph continuation text #675
Comments
It is behaving according to spec. Block quotes are containers. They contain other elements such as paragraphs. In this case the block quote contains a single paragraph whose first line is That's the whole point of paragraph continuation: to support laziness, the ability to continue paragraphs nested in containers without having to repeat the container demarcation ( Examples are all over the spec. Please take a look. As you can see, all the CommonMark compliant renderers work this way. I personally think the other interpretations make more visual sense (click on Preview in Babelmark). But I'm sure CommonMark specifies what it does for considered reasons, possibly for internally consistency across all its rules. I don't remember off hand, but if you read the spec I'm sure it's there. |
See sec 4.3
and
|
In that case, the issue here is with the spec itself. From the definition of a block quote: Take the following two sets of line
If There is an example that does show that this would be a part of the previous text, but I think the definition of paragraph continuation text does not accurately explain why that is the case. |
Hi,
I've noticed this is also an issue in the python commonmark library) and presumably commonmark.js. The spec says:
But, in the following, I would not expect TITLE to be paragraph continuation text but is rendered as part of the block quote:
https://spec.commonmark.org/dingus/?text=%3E%20code%0ATITLE%0A%3D%3D%3D%3D%3D (You'll have to copy and paste this by hand or refresh the page once it's loaded.)
The text was updated successfully, but these errors were encountered: