diff --git a/src/lib/output/plugins/MarkedPlugin.ts b/src/lib/output/plugins/MarkedPlugin.ts index 22a735567..3a5a51df8 100644 --- a/src/lib/output/plugins/MarkedPlugin.ts +++ b/src/lib/output/plugins/MarkedPlugin.ts @@ -87,7 +87,8 @@ export class MarkedPlugin extends ContextAwareRendererComponent { Handlebars.registerHelper('relativeURL', (url: string) => url ? this.getRelativeUrl(url) : url); Marked.setOptions({ - highlight: (text: any, lang: any) => this.getHighlighted(text, lang) + highlight: (text: any, lang: any) => this.getHighlighted(text, lang), + langPrefix: 'language-' }); }