Skip to content

Corruption of shortcut reference link followed by parentheses #8226

@AndrewKvalheim

Description

@AndrewKvalheim

Prettier 2.0.5 wrongly combines this shortcut reference link with the parentheses that follow:

Input:

notify [foo] (author)

[foo]: /foo

notify foo (author)

Expected output:

notify [foo] (author)

[foo]: /foo

notify foo (author)

Actual output:

notify [foo](author)

[foo]: /foo

notify foo

Example:

$ prettier --version
2.0.5
$ prettier --no-config --parser markdown <<< 'notify [foo] (author)'
notify [foo](author)

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