change markdown shortcut for striked text to two tildes

This commit is contained in:
Hans Pagel
2020-10-02 15:05:26 +02:00
parent f96dca37d6
commit eeec5b6871
3 changed files with 4 additions and 4 deletions

View File

@@ -10,8 +10,8 @@ declare module '@tiptap/core/src/Editor' {
}
}
export const inputRegex = /(?:^|\s)((?:~)((?:[^~]+))(?:~))$/gm
export const pasteRegex = /(?:^|\s)((?:~)((?:[^~]+))(?:~))/gm
export const inputRegex = /(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/gm
export const pasteRegex = /(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/gm
export default new Mark()
.name('strike')