Thanks to visit codestin.com
Credit goes to github.com

Skip to content

MDX: sub-bullets after HTML element formatted to previous line #18889

@karlhorky

Description

@karlhorky

Prettier v3.8.1
Playground link

--parser mdx

Input:

- <code>abc</code>
  - def
  - ghi

Output:

- <code>abc</code>- def - ghi

Expected output:

- <code>abc</code>
  - def
  - ghi

Why?

The sub-bullets should stay as bullets and not become a part of the previous bullet

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:no-semilang:mdxIssues affecting the MDX extension to Markdown (not general Markdown issues)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions