mdx-editor / editor

A rich text editor React component for markdown
https://mdxeditor.dev
MIT License
1.87k stars 141 forks source link

[BUG] code block error #496

Closed sao-coding closed 3 months ago

sao-coding commented 3 months ago

If you want to ask for support or request features, sponsor the project and contact me over email.

Describe the bug A clear and concise description of what the bug is. I typed `` and the editor judged it to be \``

https://github.com/mdx-editor/editor/assets/58339015/007b35f0-5c2a-4d87-9821-d68f8912ca13

Reproduction Start from https://codesandbox.io/p/sandbox/mdx-editor-base-q8s7zr?file=/src/App.tsx to reproduce the problem so that I can observe the issue on my side and make sure that the fix reliably addresses it.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

petyosi commented 3 months ago

you need to press space after tsx. That's how the shortcuts, work at the moment.

sao-coding commented 3 months ago

Thanks