From 4bdb0130d9573e0f37d851600c5b8ed33d2ce736 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sat, 3 Dec 2022 11:11:20 +0800 Subject: [PATCH] [opt] search --- scripts/generators/search.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/generators/search.js b/scripts/generators/search.js index b578483..5ffc1af 100644 --- a/scripts/generators/search.js +++ b/scripts/generators/search.js @@ -54,6 +54,8 @@ hexo.extend.generator.register('search_json_generator', function (locals) { content = content.replace(/[#]{2,} /g, '') // 部分HTML标签 content = content.replace(//g, '') + content = content.replace(/
/g, '') + content = content.replace(/
/g, '') // 图片 content = content.replace(/\!\[(.*?)\]\((.*?)\)/g, '') // 链接