diff --git a/web/cm_plugins/fenced_code.ts b/web/cm_plugins/fenced_code.ts index bd04248..ba7bcea 100644 --- a/web/cm_plugins/fenced_code.ts +++ b/web/cm_plugins/fenced_code.ts @@ -165,7 +165,7 @@ export function fencedCodePlugin(editor: Editor) { widgets.push( Decoration.line({ class: "sb-line-code-outside", - }).range(node.from), + }).range(state.doc.lineAt(from).from), ); } }