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[] = [];