fix: fix a bug in the highlight regex, fix #2355

This commit is contained in:
Philipp Kühn 2022-01-07 10:04:06 +01:00
parent 58c174abea
commit b8a42fcaef

View File

@ -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',