Skip to content

blockquotes violate principle of uniformity #634

@vassudanagunta

Description

@vassudanagunta

principle of uniformity: if a chunk of text has a certain meaning, it will continue to have the same meaning when put into a container block (such as a list item or blockquote).

The following:

List with sublist:

- a
  - b

Exact same lines put in a blockquote container block:

>- a
>  - b

is rendered by CommonMark 0.29 as

bq0

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:

     indented 5 spaces
    indented 4 spaces
     indented 5 spaces

The above lines, in a blockquote:

>     indented 5 spaces
>    indented 4 spaces
>     indented 5 spaces

is rendered as:

bq2

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions