Change all SETTINGS with page references to allow "[[page]]" notation

This commit is contained in:
Zef Hemel
2023-08-17 20:27:05 +02:00
parent 6b3649c345
commit b273645bae
7 changed files with 34 additions and 19 deletions
+4
View File
@@ -1,4 +1,5 @@
import {
cleanPageRef,
federatedPathToUrl,
resolvePath,
rewritePageRefs,
@@ -38,6 +39,9 @@ Deno.test("Test URL resolver", () => {
federatedPathToUrl("!silverbullet.md/index"),
"https://silverbullet.md/index",
);
assertEquals(cleanPageRef("hello"), "hello");
assertEquals(cleanPageRef("[[hello]]"), "hello");
});
Deno.test("Test rewritePageRefs", () => {