Skip to content

Bug: Markdown export breaks format when the line ends with the link #7503

@piotr-musiol

Description

@piotr-musiol

Lexical version: 0.31.0

Steps To Reproduce

  1. type any phrase with bold or italic
  2. end it with a link with the same bold/italic format (order doesn't matter, format can be added later)
Image
  1. transform to markdown

result:
The format tag (**) is not closed, which seems to be invalid and creates ** as artifacts

Image
  1. After transforming back from markdown, it looks broken:
Image

Impact of fix

Well, I'd like to believe it can happen to anyone who needs to use the Markdown transformation, since it can be easily reproduced in every editor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions