Skip to content

Conversation

@mejo-
Copy link
Member

@mejo- mejo- commented Dec 2, 2021

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]

  • Resolves: #
  • Target version: master

Summary

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]>
@mejo- mejo- changed the title Update mark input/paste rules to tiptap v2 regular expressions [stable22] Update mark input/paste rules to tiptap v2 regular expressions Dec 2, 2021
@mejo- mejo- merged commit d74bb9a into stable22 Dec 2, 2021
@delete-merged-branch delete-merged-branch bot deleted the backport/1964/stable22 branch December 2, 2021 13:22
@skjnldsv skjnldsv mentioned this pull request Jan 7, 2022
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants