@tiptap/extension-strike
Advanced tools
Comparing version 2.0.0-beta.18 to 2.0.0-beta.19
@@ -7,4 +7,4 @@ 'use strict'; | ||
const inputRegex = /(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/gm; | ||
const pasteRegex = /(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/gm; | ||
const inputRegex = /(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/; | ||
const pasteRegex = /(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g; | ||
const Strike = core.Mark.create({ | ||
@@ -11,0 +11,0 @@ name: 'strike', |
import { Mark, mergeAttributes, markInputRule, markPasteRule } from '@tiptap/core'; | ||
const inputRegex = /(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/gm; | ||
const pasteRegex = /(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/gm; | ||
const inputRegex = /(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/; | ||
const pasteRegex = /(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g; | ||
const Strike = Mark.create({ | ||
@@ -6,0 +6,0 @@ name: 'strike', |
@@ -7,4 +7,4 @@ (function (global, factory) { | ||
const inputRegex = /(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/gm; | ||
const pasteRegex = /(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/gm; | ||
const inputRegex = /(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/; | ||
const pasteRegex = /(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g; | ||
const Strike = core.Mark.create({ | ||
@@ -11,0 +11,0 @@ name: 'strike', |
{ | ||
"name": "@tiptap/extension-strike", | ||
"description": "strike extension for tiptap", | ||
"version": "2.0.0-beta.18", | ||
"version": "2.0.0-beta.19", | ||
"homepage": "https://tiptap.dev", | ||
@@ -31,3 +31,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "ed00dbbe56d7a31dbfcf02594c4ce5f54c7bc27a" | ||
"gitHead": "3a7e202e71335c538bb0d60f1e42860cd2ec2c2f" | ||
} |
@@ -31,4 +31,4 @@ import { | ||
export const inputRegex = /(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/gm | ||
export const pasteRegex = /(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/gm | ||
export const inputRegex = /(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/ | ||
export const pasteRegex = /(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g | ||
@@ -35,0 +35,0 @@ export const Strike = Mark.create<StrikeOptions>({ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
22385