mdx-editor / mdx-editor/editor

[BUG] Text in span tags not rendering correctly in between markdown markers

Open
#840 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
3.7k
Forks
307
Avg merge
14h 22m
Merged PRs (30d)
5

Description

  • I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
  • I have read the documentation and cannot find an answer.

Describe the bug
The text in between any HTML tag, when located in between bold or italic markdown syntax markers, does not follow the markdown formatting.

https://github.com/user-attachments/assets/c0b7fe0a-1532-4817-a4c5-e66ccac5fd24

To Reproduce
Steps to reproduce the behavior:

  1. Simply have any text encased in HTML tags located in between either bold or italic markdown markers. E.g. "*Hypothetically enormous <strong>baguette</strong> is a floccinaucinihilipilification.*"

Expected behavior
The text in HTML tags that are nested in between markdown markers should follow the markdown formatting. The following example was performed in Markdown Live Preview :

Image

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Firefox, Chrome

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Reproduce the example in the editor and trace the markdown/HTML rendering path; done means text inside nested HTML tags follows the surrounding bold or italic formatting, with a regression test for the reported case.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown, react, typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.