From 23918403860d12cdeac30a8f91d7fef0158bd1d1 Mon Sep 17 00:00:00 2001 From: BearToCode Date: Tue, 8 Aug 2023 10:29:43 +0200 Subject: [PATCH] plugin-tikz: set async true to fix rendering issues --- packages/plugin-tikz/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/plugin-tikz/src/index.ts b/packages/plugin-tikz/src/index.ts index ab4241df..0a40f74a 100644 --- a/packages/plugin-tikz/src/index.ts +++ b/packages/plugin-tikz/src/index.ts @@ -46,6 +46,7 @@ export const tikz = (options?: TikzExtensionOptions): CartaExtension => { }, markedExtensions: [ { + async: true, extensions: [tikzTokenizer(options)] } ], @@ -167,7 +168,7 @@ async function loadTikz(options?: TikzExtensionOptions) { } function tidyTikzSource(tikzSource: string) { - // FROM: OBSIDIAN-TIKZ, CREDIT TO THEM + // From: Obsidian-TikZ plugin, credit to them // Remove non-breaking space characters, otherwise we get errors const remove = ' '; tikzSource = tikzSource.replaceAll(remove, '');