Check fix
This commit is contained in:
parent
16b8d4ef12
commit
c1a6253b34
@ -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+$/)) {
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user