1
0

Check fix

This commit is contained in:
Zef Hemel 2023-12-29 20:06:11 +01:00
parent 16b8d4ef12
commit c1a6253b34
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ async function actionClickOrActionEnter(
switch (mdTree.type) {
case "WikiLink": {
let pageLink = mdTree.children![1]!.children![0].text!;
let pos;
let pos: string | number = 0;
if (pageLink.includes("@") || pageLink.includes("$")) {
[pageLink, pos] = pageLink.split(/[@$]/);
if (pos.match(/^\d+$/)) {

View File

@ -1,4 +1,4 @@
import { markdown, space,, YAML } from "$sb/syscalls.ts";
import { markdown, space, YAML } from "$sb/syscalls.ts";
import { loadPageObject, replaceTemplateVars } from "../template/template.ts";
import { CodeWidgetContent, PageMeta } from "$sb/types.ts";
import { renderTemplate } from "../template/plug_api.ts";