[opt] search
This commit is contained in:
parent
f71e22106e
commit
4bdb0130d9
|
@ -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, '')
|
||||||
// 链接
|
// 链接
|
||||||
|
|
Loading…
Reference in New Issue