Change all SETTINGS with page references to allow "[[page]]" notation
This commit is contained in:
@@ -66,3 +66,11 @@ export function rewritePageRefs(tree: ParseTree, containerPageName: string) {
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
export function cleanPageRef(pageRef: string) {
|
||||
if (pageRef.startsWith("[[") && pageRef.endsWith("]]")) {
|
||||
return pageRef.slice(2, -2);
|
||||
} else {
|
||||
return pageRef;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user