diff --git a/src/lib/parseMarkdown.ts b/src/lib/parseMarkdown.ts index 7cd3236..75434d6 100644 --- a/src/lib/parseMarkdown.ts +++ b/src/lib/parseMarkdown.ts @@ -40,7 +40,7 @@ marked.use({ tokenizer }); marked.use( markedSmartypants({ config: "1", - }), + }) ); marked.use({ @@ -53,8 +53,8 @@ marked.use({ export function parseMarkdown( markdown: string, - { strict = true }: { strict?: boolean } = {}, -): Promise { + { strict = true }: { strict?: boolean } = {} +): string { if (strict) { if (!markdown.includes("BEGIN_MAGIC")) { throw new Error("No BEGIN_MAGIC found"); @@ -66,7 +66,7 @@ export function parseMarkdown( if (/(?