Skip to content

Markdown: 3.9.0 rewrites subscript to strike-through #19735

Closed

Description

@jan-evermood

Prettier v3.9.6
Playground link

--parser markdown

Input:

H~2~O

Output:

H~~2~~O

Expected output:

H~2~O

Why?

The Caret & Tilde extension uses that for subscript. Even without, single tildes might be intended. This appeared first with 3.9.0.

Activity

  1. jan-evermood commented on Jul 30, 2026

    @jan-evermood
    Author

    Thank you! 🙏

  2. locked as resolved and limited conversation to collaborators on Oct 29, 2026
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

    locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions