@portabletext/editor 1.12.1 → 1.12.2
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/lib/index.esm.js +2 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +2 -2
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/editor/behavior/behavior.markdown.ts +2 -2
package/package.json
CHANGED
|
@@ -418,11 +418,11 @@ export function createMarkdownBehaviors(config: MarkdownBehaviorsConfig) {
|
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
-
const looksLikeOrderedList = /^1
|
|
421
|
+
const looksLikeOrderedList = /^1\./.test(blockText)
|
|
422
422
|
const orderedListStyle = config.orderedListStyle?.({
|
|
423
423
|
schema: context.schema,
|
|
424
424
|
})
|
|
425
|
-
const caretAtTheEndOfOrderedList =
|
|
425
|
+
const caretAtTheEndOfOrderedList = blockOffset.offset === 2
|
|
426
426
|
|
|
427
427
|
if (
|
|
428
428
|
defaultStyle &&
|