Skip to content

markdown: invalid regular expression with link in paragraph in list item #5921

@kenlyon

Description

@kenlyon

Prettier 1.16.4
Playground link

Input:

Causes a syntax error:

* Text

 	[http://www.foo.com](link)

Just for clarity:

  • There are no trailing spaces after the word "Text" on the first line.
  • The second line is empty. (no spaces)
  • The third line starts with a space then a tab.

Output:

Invalid regular expression: /^\s{0,3}[/: Unterminated character class

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:markdownIssues affecting Markdownlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions