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