mdx-editor / mdx-editor/editor
[BUG] ChangeAdmonitionType plugin throws when it's included
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
Adding the ChangeAdmonition type plugin to the active plugin list throws TypeError: Cannot read properties of null (reading 'rootNode')
Reproduction
codesandbox
To Reproduce
Steps to reproduce the behavior:
Load the sandbox
Expected behavior
No error!
Desktop (please complete the following information):
MacOS, Chrome 119, mdx-editor 2.3.4
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
Start with the linked CodeSandbox and the ChangeAdmonition type plugin in the active plugin list. Reproduce the null rootNode TypeError while loading the sandbox, then trace the plugin behavior until it loads without an error. Done means the plugin can be included and the editor starts normally.
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
- 38/100