This commit is contained in:
Zef Hemel
2024-01-13 18:42:40 +01:00
parent 0ff005a595
commit 0296679827
5 changed files with 16 additions and 7 deletions
+2 -1
View File
@@ -245,10 +245,11 @@ function render(
if (aliasNode) {
linkText = aliasNode.children![0].text!;
}
const [pageName] = ref.split(/[@$]/);
return {
name: "a",
attrs: {
href: `/${ref.replace("@", "#")}`,
href: `/${pageName}`,
class: "wiki-link",
"data-ref": ref,
},