feat(build): allow using custom highlighter (#754) (#857)

pull/859/head
Enzo Notario 3 years ago committed by GitHub
parent 00fe8092d9
commit ddf876d8e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save