Browse Source

Work around pygmentize-bundled-cached bug #3

master
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-'
}
}, code, (err, res) => {
if (err) {
if (err || res.toString() === 'undefined') {
cb(escapeHTML(code));
} else {
cb(res);

Loading…
Cancel
Save