Skip to content

(markdown) List items inside blockquotes/HTML comments aren't highlighted correctly #3519

@double-beep

Description

@double-beep

Consider this markdown:

> * One (this point is italic)
> * Two
> * Three

This is italic, and because of a lack of termination (#21), everything after is italic

<!-- * but a comment terminates the italic -->

Regular text

It gets highlighted like this:

incorrect markdown highlighting


It is, however, valid markdown:

  • One (this point is italic)
  • Two
  • Three

This should not be italic

Regular text


Compare with the following markdown:

> - One
> - Two
> - Three

some text

that gets highlighted like this:

correct markdown highlighting

or this:

* One
* Two
* Three

some text

which gets highlighted like this:

correct markdown highlighting

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions