@tiptap/extension-bold
Advanced tools
Comparing version 2.2.4 to 2.2.5
import { Mark, mergeAttributes, markInputRule, markPasteRule } from '@tiptap/core'; | ||
const starInputRegex = /(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/; | ||
const starPasteRegex = /(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g; | ||
const underscoreInputRegex = /(?:^|\s)((?:__)((?:[^__]+))(?:__))$/; | ||
const underscorePasteRegex = /(?:^|\s)((?:__)((?:[^__]+))(?:__))/g; | ||
const starInputRegex = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/; | ||
const starPasteRegex = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g; | ||
const underscoreInputRegex = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/; | ||
const underscorePasteRegex = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g; | ||
const Bold = Mark.create({ | ||
@@ -8,0 +8,0 @@ name: 'bold', |
@@ -7,6 +7,6 @@ (function (global, factory) { | ||
const starInputRegex = /(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/; | ||
const starPasteRegex = /(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g; | ||
const underscoreInputRegex = /(?:^|\s)((?:__)((?:[^__]+))(?:__))$/; | ||
const underscorePasteRegex = /(?:^|\s)((?:__)((?:[^__]+))(?:__))/g; | ||
const starInputRegex = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/; | ||
const starPasteRegex = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g; | ||
const underscoreInputRegex = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/; | ||
const underscorePasteRegex = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g; | ||
const Bold = core.Mark.create({ | ||
@@ -13,0 +13,0 @@ name: 'bold', |
{ | ||
"name": "@tiptap/extension-bold", | ||
"description": "bold extension for tiptap", | ||
"version": "2.2.4", | ||
"version": "2.2.5", | ||
"homepage": "https://tiptap.dev", | ||
@@ -32,3 +32,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@tiptap/core": "^2.2.4" | ||
"@tiptap/core": "^2.2.5" | ||
}, | ||
@@ -35,0 +35,0 @@ "peerDependencies": { |
@@ -31,6 +31,6 @@ import { | ||
export const starInputRegex = /(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/ | ||
export const starPasteRegex = /(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g | ||
export const underscoreInputRegex = /(?:^|\s)((?:__)((?:[^__]+))(?:__))$/ | ||
export const underscorePasteRegex = /(?:^|\s)((?:__)((?:[^__]+))(?:__))/g | ||
export const starInputRegex = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/ | ||
export const starPasteRegex = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g | ||
export const underscoreInputRegex = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/ | ||
export const underscorePasteRegex = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g | ||
@@ -37,0 +37,0 @@ export const Bold = Mark.create<BoldOptions>({ |
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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26894