-
-
Notifications
You must be signed in to change notification settings - Fork 317
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
blockquotes violate principle of uniformity #634
Comments
The spec should really disallow blockquote markers without a single space following it, >- a
> - b <p>>- a
> - b</p> but since that would break backwards compatibility, they should tu least not be mend together in a single blockquote, cf. different bullet list markers. Then, this Commonmark input >- a
> - b would be identical to >- a
> - b and both would yield the same (normalized) HTML output: <blockquote><ul><li>a</li></ul></blockquote>
<blockquote><ul> <li>b</li></ul></blockquote> |
That interpretation, @Crissov, to me is very counterintuitive and runs counter to Markdown's design principles. |
Yeah, this is a problem for sure. As noted in my comment on #460, it's a tricky one. |
@vassudanagunta Blockquote markers are the only line prefixes that do not require a space following them, since hash-sign headings have been fixed. PS: Blockquotes - whitespace after |
The following:
is rendered by CommonMark 0.29 as
Please compare the above with the example given in the spec just below the definition of the principle of uniformity
A plurality of markdown implementations, including the original Gruber, correctly follow the principle in this regard (I'm counting all the CommonMark implementations as one).
Another example of the issue:
is rendered as:
Though in this case, all the implementations except MultiMarkdown get it wrong. I would say this latter case is esoteric and unimportant. The first case, the handling of nested lists as demonstrated in the first example, should determine the proper course of action.
The text was updated successfully, but these errors were encountered: