feat: code highlighting client-side

This commit is contained in:
Nicolas Giard
2018-09-16 22:30:24 -04:00
parent 1bc98068e9
commit d393a95495
6 changed files with 32 additions and 81 deletions

View File

@@ -25,7 +25,7 @@ module.exports = {
typographer: this.config.typographer,
quotes: _.get(quoteStyles, this.config.quotes, quoteStyles.English),
highlight(str, lang) {
return `<pre><code lang="${lang}">${_.escape(str)}</code></pre>`
return `<pre><code class="language-${lang}">${_.escape(str)}</code></pre>`
}
})