[opt] search

This commit is contained in:
xaoxuu 2022-12-03 11:11:20 +08:00
parent f71e22106e
commit 4bdb0130d9
1 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,8 @@ hexo.extend.generator.register('search_json_generator', function (locals) {
content = content.replace(/[#]{2,} /g, '') content = content.replace(/[#]{2,} /g, '')
// 部分HTML标签 // 部分HTML标签
content = content.replace(/<iframe[\s|\S]+iframe>/g, '') content = content.replace(/<iframe[\s|\S]+iframe>/g, '')
content = content.replace(/<hr>/g, '')
content = content.replace(/<br>/g, '')
// 图片 // 图片
content = content.replace(/\!\[(.*?)\]\((.*?)\)/g, '') content = content.replace(/\!\[(.*?)\]\((.*?)\)/g, '')
// 链接 // 链接