Skip to content

Deno fmt incorrectly formats GitHub Markdown alerts  #20917

@benStre

Description

@benStre

GitHub supports Alerts in Markdown files. Alerts are created with the following syntax:

> [!NOTE]
> Highlights information that users should take into account, even when skimming.

When running deno fmt, this gets converted to

> [!NOTE] Highlights information that users should take into account, even when skimming.

Because of the missing newline, GitHub does not interpret this as a "NOTE" alert anymore.

It would be great if deno fmt would keep the newline in this case so that alerts keep working in Markdown files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working correctlydeno fmtRelated to the "deno fmt" subcommand or dprint

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions