Skip to content

Markdown: Prettier 3.9.x incorrectly inserts > before \> #19528

Closed

Description

@kosmoz

Prettier v3.9.4
Playground link

--parser markdown

Input:

> test\>

> **test**\>

> \>

Output:

> test\>

> **test**>\>

> >\>

Expected output:

> test\>

> **test**\>

> \>

Why?

Starting with version 3.9.0, Prettier inserts extra > before \>. I don't fully understand the logic, when this happens, but it incorrectly formats documentation generated by TypeDoc.

Activity

  1. added theissue type on Jul 2, 2026
  2. added
    help wantedWe're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!
    on Jul 2, 2026
  3. fisker commented on Jul 26, 2026

    @fisker
    Member

    Anyone want continue work on this issue, please take a look at #19602, and make sure the following cases are fixed.

    #19602 (comment)

    > \>
    > \>
    

    #19602 (comment)

    > *text* > \>
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedWe're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!lang:markdownIssues affecting Markdown

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions