Browse Source

fence renderer: fix concat of class array

Before:

  <pre c="l"><code>...

Now:

  <pre class="someClass language-python><code>...

Bug introduced in b7c868b64b
pull/276/head
arve0 8 years ago
parent
commit
e9306a572c
  1. 2
      lib/renderer.js

2
lib/renderer.js

@ -68,7 +68,7 @@ default_rules.fence = function (tokens, idx, options, env, slf) {
if (i < 0) {
tmpAttrs.push([ 'class', options.langPrefix + langName ]);
} else {
tmpAttrs[i] += ' ' + options.langPrefix + langName;
tmpAttrs[i][1] += ' ' + options.langPrefix + langName;
}
// Fake token just to render attributes

Loading…
Cancel
Save