You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
felix98765
changed the title
[BUG] Bold format did not get serialized with quotes
[BUG] Bold format did not get serialized with any punctuation character
Jun 6, 2024
I believe that this problem falls into the category of formatting that's possible to be done in the rich text environment, but impossible to be converted to a valid markdown. If you try writing the same markdown in StackEdit, you get the same problem.
Happy to accept a contribution that fixes it, but I am not aware of a way to address it.
Describe the bug
Bold format serialized with any punctuation character cannot be rendered back.
Reproduction
quotes:
https://codesandbox.io/p/sandbox/mdx-editor-base-forked-yzft7z?file=%2Fsrc%2FApp.tsx
Exclamation mark:
https://codesandbox.io/p/sandbox/mdx-editor-base-forked-69dgt8?file=%2Fsrc%2FApp.tsx
(Originally I though it was quotes only, but after posting this bug report I reproduced it with exclamation mark)
To Reproduce
Steps to reproduce the behavior:
https://codesandbox.io/p/sandbox/mdx-editor-base-forked-yzft7z?file=%2Fsrc%2FApp.tsx
md1
, select"b"
and hitctrl+b
, it makes the "b" 3 chars bold.content is now equal to md2 a**"b"**c
.md2
as initial markdown, it renders nothing bold.Expected behavior
Ctrl+b
should make the text bold even after serialized and deserialized back.Screenshots
The text was updated successfully, but these errors were encountered: