CommandLink alias syntax

This commit is contained in:
Zef Hemel
2022-11-29 09:11:23 +01:00
parent 55791cc88e
commit 6a047e1ef4
8 changed files with 172 additions and 22 deletions
-2
View File
@@ -6,7 +6,6 @@ import {
EditorView,
ViewPlugin,
ViewUpdate,
WidgetType,
} from "../deps.ts";
import { Editor } from "../editor.tsx";
import {
@@ -41,7 +40,6 @@ export function cleanWikiLinkPlugin(editor: Editor) {
if (type.name !== "WikiLink") {
return;
}
// Adding 2 on each side due to [[ and ]] that are outside the WikiLinkPage node
if (isCursorInRange(view.state, [from, to])) {
return;
}