Permalink
Browse files

`hljs` extension now generate `highlight` block markup

  • Loading branch information...
1 parent 1d25ad6 commit ebb88c74a1b4282839b1ba60f46bca24fadcea33 @arikon arikon committed Oct 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/extensions/hljs.js
View
@@ -6,7 +6,7 @@ exports.astToBemjson = function(c, p) {
res = p? HL.highlight(lang, c) : HL.highlightAuto(lang);
return {
- block: 'b-code',
+ block: 'highlight',
lang: res.language,
content: res.value
};
@@ -18,7 +18,7 @@ exports.astToHtml = function(c, p) {
var lang = translateAlias(p),
res = p? HL.highlight(lang, c) : HL.highlightAuto(lang);
- return '<pre class="b-code"><code class="b-code__snippet ' + res.language + '">' +
+ return '<pre class="highlight"><code class="highlight__code ' + res.language + '">' +
res.value +
'</code></pre>';

0 comments on commit ebb88c7

Please sign in to comment.