-
Notifications
You must be signed in to change notification settings - Fork 109
Update mark input/paste rules to tiptap v2 regular expressions #1964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
26217f1 to
ad88bf1
Compare
ad88bf1 to
6b980af
Compare
julien-nc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is nice!
It feels a bit weird when you want a sub part of a word to be bold. You type un**cann**y and it does not get formatted...
But I guess this is a very uncommon use case.
6b980af to
a2338f9
Compare
The most important change is that a mark is added only if you are at the beginning of a block or there is a space before it. This especially fixes accidently formatting parts of a string as italic when it contains two underscores (often true in URLs or emoji names). This change can be reverted when we migrated to tiptap v2, but it's a low hanging fix for an annoying bug, and the tiptap v2 migration might take a bit longer. See Philipp Kuehns comment at https://discuss.prosemirror.net/t/4230/3. Signed-off-by: Jonas Meurer <[email protected]>
a2338f9 to
dc436d3
Compare
|
This probably should also be backported to stable23 and stable22 at least, no? @juliushaertl |
|
Yes, definitely. |
|
/backport to stable23 |
|
/backport to stable22 |
|
The backport to stable22 failed. Please do this backport manually. |
The most important change is that a mark is added only if you are at
the beginning of a block or there is a space before it.
This especially fixes accidently formatting parts of a string as italic
when it contains two underscores (often true in URLs or emoji names).
This change can be reverted when we migrated to tiptap v2, but it's
a low hanging fix for an annoying bug, and the tiptap v2 migration might
take a bit longer.
See Philipp Kuehns comment at https://discuss.prosemirror.net/t/4230/3.