Skip to content

bug(commonmark) Formatting within link in Markdown gets moved outside the link in translation #173

@yellis

Description

@yellis

Describe the bug
Toggling from Markdown to rich text and back to Markdown causes asterisks (in the placeholder text for links) to be displaced.

image

To Reproduce
Steps to reproduce the behavior:

  1. Go to MD mode. Type in [**this is a link**](https://google.com)
  2. Toggle to RT and back to MD
  3. Text is now **[this is a link](https://google.com)**

Expected behavior
Any markdown formatting that was within the link in markdown should stay within the link

Desktop (please complete the following information):
Windows 11 Chrome 103

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcommonmarkRelates to commonmark round-tripping or syntax

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions