Skip to content

Commit ddf876d

Browse files
authored
feat(build): allow using custom highlighter (#754) (#857)
1 parent 00fe809 commit ddf876d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/markdown/markdown.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const createMarkdownRenderer = async (
6161
const md = MarkdownIt({
6262
html: true,
6363
linkify: true,
64-
highlight: await highlight(options.theme),
64+
highlight: options.highlight || (await highlight(options.theme)),
6565
...options
6666
}) as MarkdownRenderer
6767

0 commit comments

Comments
 (0)