Skip to content

Markdown editor generates invalid output for overlapping formatting #7243

@sanjeev-ashokkumar

Description

@sanjeev-ashokkumar

Affected Packages

@tiptap/markdown

Version(s)

3.10.7

Bug Description

When text has overlapping formatting applied to it, the Markdown editor generates invalid syntax.

Example

Input: This sentence has overlapping formatting applied to it.

Expected result (valid Markdown): **This sentence has *overlapping formatting*** *applied to it*.

Actual result (invalid Markdown): **This sentence has *overlapping formatting** applied to it.*

Browser Used

Chrome

Code Example URL

No response

Expected Behavior

When overlapping formatting is applied, the Markdown editor should accurately segment the formatted text and apply nested Markdown formatting marks as necessary.

Additional Context (Optional)

No response

Dependency Updates

  • Yes, I've updated all my dependencies.

Metadata

Metadata

Assignees

Labels

Open SourceThe issue or pull reuqest is related to the open source packages of Tiptap.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions