Federation progress

This commit is contained in:
Zef Hemel
2023-07-29 23:41:37 +02:00
parent 272bd90ee6
commit fe4887dc78
11 changed files with 112 additions and 49 deletions
+2
View File
@@ -8,6 +8,7 @@ import {
isCursorInRange,
LinkWidget,
} from "./util.ts";
import { resolvePath } from "$sb/lib/resolve.ts";
/**
* Plugin to hide path prefix when the cursor is not inside.
@@ -33,6 +34,7 @@ export function cleanWikiLinkPlugin(editor: Client) {
if (page.includes("@")) {
cleanPage = page.split("@")[0];
}
cleanPage = resolvePath(editor.currentPage!, cleanPage);
// console.log("Resolved page", resolvedPage);
for (const pageMeta of allPages) {
if (pageMeta.name === cleanPage) {