From 6b0b193f86e86dbfe5554bad7b14793c22213931 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20de=20Metz?= Date: Mon, 6 May 2024 14:26:12 +0200 Subject: [PATCH] Await on marked.parse. --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index d677ce8..75a6060 100644 --- a/src/index.ts +++ b/src/index.ts @@ -42,7 +42,7 @@ export default new Transformer({ }) const result = { ...frontMatter }; if (option.marked) { - result.__content = marked.parse(frontMatter.__content, { ...option.marked }); + result.__content = await marked.parse(frontMatter.__content, { ...option.marked }); } asset.type = 'js'; asset.setCode(`export default ${JSON.stringify(result)}`);