@tiptap/core 2.0.0-beta.158 → 2.0.0-beta.159
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/tiptap-core.cjs.js
CHANGED
|
@@ -2252,7 +2252,7 @@ function run$1(config) {
|
|
|
2252
2252
|
}
|
|
2253
2253
|
let matched = false;
|
|
2254
2254
|
const maxMatch = 500;
|
|
2255
|
-
const textBefore = $from.parent.textBetween(Math.max(0, $from.parentOffset - maxMatch), $from.parentOffset, undefined, '
|
|
2255
|
+
const textBefore = $from.parent.textBetween(Math.max(0, $from.parentOffset - maxMatch), $from.parentOffset, undefined, ' ') + text;
|
|
2256
2256
|
rules.forEach(rule => {
|
|
2257
2257
|
if (matched) {
|
|
2258
2258
|
return;
|