From 9accce156b0e3187251a4541da3093426da4cd10 Mon Sep 17 00:00:00 2001 From: Nulo Date: Tue, 20 Dec 2022 17:25:10 -0300 Subject: [PATCH] fix(compilar): bug pedorro --- compilar.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compilar.ts b/compilar.ts index c2d90c4..2f0a555 100644 --- a/compilar.ts +++ b/compilar.ts @@ -9,6 +9,8 @@ const execFile = promisify(execFileCallback); const reader = new commonmark.Parser({ smart: true }); const writer = new commonmark.HtmlRenderer({ safe: false, smart: true }); +const wikilinkExp = /\[\[(.+?)\]\]/giu; + const compilers: { [key: string]: (config: Config, sourceFileName: string) => Promise; } = { @@ -187,8 +189,6 @@ interface Connection { linker: string; } -const wikilinkExp = /\[\[(.+?)\]\]/giu; - async function scanForConnections(sourcePath: string): Promise { const dir = await opendir(sourcePath); let connections: Connection[] = [];