From c1af3b0e53390f9728b794cdc09f1387231bad1e Mon Sep 17 00:00:00 2001 From: Enzo Notario Date: Sat, 25 Jun 2022 12:29:23 -0300 Subject: [PATCH] feat(markdown): allows to use custom highlight close #754 --- src/node/markdown/markdown.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/markdown/markdown.ts b/src/node/markdown/markdown.ts index dbf24e29..77276c62 100644 --- a/src/node/markdown/markdown.ts +++ b/src/node/markdown/markdown.ts @@ -61,7 +61,7 @@ export const createMarkdownRenderer = async ( const md = MarkdownIt({ html: true, linkify: true, - highlight: await highlight(options.theme), + highlight: options.highlight || (await highlight(options.theme)), ...options }) as MarkdownRenderer