Browse Source

Fix highlighted code wrapped twice

master
Menci 6 years ago
parent
commit
3e3209ce0c
  1. 4
      libs/highlight.js

4
libs/highlight.js

@ -2,5 +2,7 @@ const { highlight } = require('syzoj-renderer');
const objectHash = require('object-hash');
module.exports = async (code, lang, cb) => {
highlight(code, lang, syzoj.redisCache).then(cb);
highlight(code, lang, syzoj.redisCache, {
wrapper: null
}).then(cb);
}

Loading…
Cancel
Save