From 6f659ac4d5002a4fc1c400b2ab9e41fe96404526 Mon Sep 17 00:00:00 2001 From: Remy Rylan Date: Fri, 11 May 2018 07:49:58 -0400 Subject: [PATCH] CommonMark code block class names --- src/lib/output/plugins/MarkedPlugin.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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-' }); }