Permalink
Browse files

Use auto detected language

  • Loading branch information...
1 parent 242dbd8 commit 697ba78e8c45b76bcf6866c1424276df2ba3c9df @arikon arikon committed Oct 8, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/extensions/hljs.js
View
@@ -7,7 +7,7 @@ exports.astToBemjson = function(c, p) {
return {
block: 'b-code',
- lang: lang,
+ 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><code class="b-code b-code_lang_'+ lang + ' language-' + lang + '">' +
+ return '<pre class="b-code"><code class="b-code__snippet ' + res.language + '">' +
res.value +
'</code></pre>';

0 comments on commit 697ba78

Please sign in to comment.