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, '') // 链接