-
-
Notifications
You must be signed in to change notification settings - Fork 561
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
Bug in lazy blockquote continuation (or corresponding spec is wrong, whichever) #204
Comments
Yes. This does seem to be a bug. I suspected that [this change](commonmark/commonmark-spec@0ff8022) would be problematic in some way.
See the related discussion here:
https://talk.commonmark.org/t/blank-lines-before-lists-revisited/1990
|
This is not so easy to fix. For
since the line beginning This may be a deep problem that needs to be fixed by rethinking the spec, at least the decision in jgmCommonMark@0ff8022. |
OK, it seems I happened to poke something overlooked. It's OK for me to wait for a better spec. Thank you for the quick reply. |
See https://talk.commonmark.org/t/blank-lines-before-lists-revisited/1990/13 for some discussion. |
I'm wondering whether this could be handled by modifying the spec as follows.
|
The term Paragraph continuation text is also referred from the section about list items. So the wording should cover any container block markers, not just But that would open another problem. Because for lists, we naturally need that the 2nd list item can interrupt the 1st item:
So, we would probably have to redefine paragraph continuation lines differently for lists and for block quotes. Do we want that? |
Maybe that is also key how to (re)define the continuation line if we decide to keep the current behavior. I.e. that it is more or less merging of two paragraphs, where the 2nd one (the continuation) is higher in the current block nesting hierarchy. I.e. more formally perhaps something like this:
(Yeah, someone with better English could rephrase it be better. But I hope you can get the idea.) |
Current spec says:
http://spec.commonmark.org/0.27/#block-quotes
This spec is clear, and explicit. I see no ambiguity. Now consider this blockquote:
This blockquote is valid, and satisfies the "If a string of lines Ls constitute a block quote with contents Bs" condition. So according to the spec, we can delete the leading
>
. By doing so we get this:This blockquote, according to the spec, must be identical to the former one. However cmark does not agree.
Is it intentional?
The text was updated successfully, but these errors were encountered: