🚧 Refactor markdown preview extension

This commit is contained in:
2025-11-29 22:54:38 +08:00
parent 3521e5787b
commit 1ef5350b3f
17 changed files with 467 additions and 1888 deletions

View File

@@ -16,9 +16,9 @@ function isSelectionInRange(state: EditorState, from: number, to: number): boole
return state.selection.ranges.some(
(range) => from <= range.to && to >= range.from
);
}
}
/**
/**
* Build heading decorations.
* Hides # marks when cursor is not on the heading line.
*/