Skip to content

Commit c767dc9

Browse files
committed
fix: 🐛 heading id in readonly mode
Closes: #1252
1 parent a07ad0a commit c767dc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/preset-commonmark/src/plugin/sync-heading-id-plugin.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const syncHeadingIdPlugin = $prose((ctx) => {
1111
const headingIdPluginKey = new PluginKey('MILKDOWN_HEADING_ID')
1212

1313
const updateId = (view: EditorView) => {
14-
if (view.composing || !view.editable)
14+
if (view.composing)
1515
return
1616

1717
const getId = ctx.get(headingIdGenerator.key)

0 commit comments

Comments
 (0)