Browse Source

Work around pygmentize-bundled-cached bug #3

pull/6/head
Menci 8 years ago
parent
commit
0fdf1a3a47
  1. 2
      utility.js

2
utility.js

@ -50,7 +50,7 @@ function highlightPygmentize(code, lang, cb) {
classprefix: 'pl-' classprefix: 'pl-'
} }
}, code, (err, res) => { }, code, (err, res) => {
if (err) { if (err || res.toString() === 'undefined') {
cb(escapeHTML(code)); cb(escapeHTML(code));
} else { } else {
cb(res); cb(res);

Loading…
Cancel
Save