How to apply bold to regex match? #4778
Replies: 2 comments
-
Doing this in normalize seems like a bad idea, I’d do it on keydown personally, but that error means either the model is invalid (as the error says) or your normalize function is continually making changes. After the emoji has been inserted the text node becomes dirty again, so it’s essential normalize does nothing the second time. I have two suggestions to track this down:
|
Beta Was this translation helpful? Give feedback.
-
Oh I missed the link to your stack overflow question. There is a markdown shortcuts example; it might take a bit of effort (the existing code is only doing block-level shortcuts) but it should be applicable to bold as well. |
Beta Was this translation helpful? Give feedback.
-
stackoverflow post
Trying to detect markdown and apply marks using this answer from stackoverflow.
Currently I am getting the expected results but the following error occurs:
How can I fix this?
Beta Was this translation helpful? Give feedback.
All reactions