Skip to content

Commit

Permalink
Await on marked.parse.
Browse files Browse the repository at this point in the history
  • Loading branch information
francois2metz committed May 6, 2024
1 parent 0ecde44 commit 6b0b193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`);
Expand Down

0 comments on commit 6b0b193

Please sign in to comment.