From e2ca89a3da5c3eab35e6e725aea87149d19b6f8b Mon Sep 17 00:00:00 2001 From: Guillaume Desforges Date: Sat, 12 Aug 2023 20:34:51 +0200 Subject: [PATCH] Allow async engine.render in converter --- src/converter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/converter.ts b/src/converter.ts index ef752a1e..196314e8 100644 --- a/src/converter.ts +++ b/src/converter.ts @@ -171,7 +171,7 @@ export class Converter { tplOpts.modifier?.(engine) - const ret = engine.render(stripBOM(markdown)) + const ret = await engine.render(stripBOM(markdown)) const info = engine[engineInfo] const outline = engine[pdfOutlineInfo]