From 80f1f929c92444feb30e303773ab284ecb111724 Mon Sep 17 00:00:00 2001 From: sgqy Date: Tue, 6 Nov 2018 20:06:39 +0800 Subject: [PATCH] zhihu daily fix big font (#1063) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 部分独立文章正文字体过大,删除`h2` --- routes/zhihu/daily.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/zhihu/daily.js b/routes/zhihu/daily.js index b12475cffb..1dd693e08d 100644 --- a/routes/zhihu/daily.js +++ b/routes/zhihu/daily.js @@ -36,7 +36,7 @@ module.exports = async (ctx) => { Referer: url, }, }); - item.description = utils.ProcessImage(storyDetail.data.body.replace(/
([\s\S]*?)<\/div>/g, '$1')); + item.description = utils.ProcessImage(storyDetail.data.body.replace(/
([\s\S]*?)<\/div>/g, '$1').replace(//g, '')); ctx.cache.set(key, item.description, 24 * 60 * 60); }