mdx-editor / mdx-editor/editor
[BUG] Unfocusing the editor allows the user to create nested admonitions
Open
Nobody has claimed this yet.
bug
- Dominant language
- TypeScript
- Stars
- 3.7k
- Forks
- 307
- Avg merge
- 14h 22m
- Merged PRs (30d)
- 5
Description
According to #428 it shouldn't be possible to create nested admonitions, however there is a UI bug that exposes the insert admonition toolbar button when the user unfocus the editor.
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
Reproduce the issue by unfocusing the editor and observing the insert admonition toolbar button. Trace the toolbar behavior around editor focus and admonition nesting; done means unfocusing cannot expose an action that creates nested admonitions, while the existing non-nesting behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100