fix: fix a bug in the highlight regex, fix #2355
This commit is contained in:
@@ -29,8 +29,8 @@ declare module '@tiptap/core' {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const inputRegex = /(?:^|\s)((?:==)((?:[^~]+))(?:==))$/
|
export const inputRegex = /(?:^|\s)((?:==)((?:[^~=]+))(?:==))$/
|
||||||
export const pasteRegex = /(?:^|\s)((?:==)((?:[^~]+))(?:==))/g
|
export const pasteRegex = /(?:^|\s)((?:==)((?:[^~=]+))(?:==))/g
|
||||||
|
|
||||||
export const Highlight = Mark.create<HighlightOptions>({
|
export const Highlight = Mark.create<HighlightOptions>({
|
||||||
name: 'highlight',
|
name: 'highlight',
|
||||||
|
|||||||
Reference in New Issue
Block a user