mdx-editor / mdx-editor/editor
[BUG] Text in span tags not rendering correctly in between markdown markers
Nobody has claimed this yet.
- 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:
- 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 :
Desktop (please complete the following information):
- OS: Windows
- Browser: Firefox, Chrome
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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