From 3e3209ce0cc78f7adb9b600170b081f49089616a Mon Sep 17 00:00:00 2001 From: Menci Date: Sun, 24 Mar 2019 14:27:17 +0800 Subject: [PATCH] Fix highlighted code wrapped twice --- libs/highlight.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/highlight.js b/libs/highlight.js index e6feca5..d3d4240 100644 --- a/libs/highlight.js +++ b/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); }