fix(plugins/stackoverflow): fix markdown errors display issues (#621)

This commit is contained in:
Simon Lecoq
2021-10-26 00:11:20 -04:00
committed by GitHub
parent 7fffb151c5
commit 6126a8e9f2

View File

@@ -218,7 +218,7 @@ export async function which(command) {
}
/**Code hightlighter */
export async function highlight(code, lang) {
export function highlight(code, lang) {
return lang in prism.languages ? prism.highlight(code, prism.languages[lang]) : code
}