mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-24 11:49:02 +08:00
fix: fix a bug in the highlight regex, fix #2355
This commit is contained in:
parent
58c174abea
commit
b8a42fcaef
@ -29,8 +29,8 @@ declare module '@tiptap/core' {
|
||||
}
|
||||
}
|
||||
|
||||
export const inputRegex = /(?:^|\s)((?:==)((?:[^~]+))(?:==))$/
|
||||
export const pasteRegex = /(?:^|\s)((?:==)((?:[^~]+))(?:==))/g
|
||||
export const inputRegex = /(?:^|\s)((?:==)((?:[^~=]+))(?:==))$/
|
||||
export const pasteRegex = /(?:^|\s)((?:==)((?:[^~=]+))(?:==))/g
|
||||
|
||||
export const Highlight = Mark.create<HighlightOptions>({
|
||||
name: 'highlight',
|
||||
|
Loading…
Reference in New Issue
Block a user