Skip to content

Commit

Permalink
feat(build): allow using custom highlighter (#754) (#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
enzonotario authored Jun 25, 2022
1 parent 00fe809 commit ddf876d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/markdown/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ddf876d

Please sign in to comment.