正则伤到友军了-_-!!!
This commit is contained in:
parent
29db0a7e4a
commit
21e62c933c
@ -246,7 +246,7 @@ hexo.extend.filter.register('before_post_render', function(data){
|
||||
// data.content 是处理过代码块语法高亮的内容
|
||||
if(hexo.config.picture_cdn) {
|
||||
data.content = data.content.replace(/\]\s*\((?=(?!http).*?\))/gi,
|
||||
`](${hexo.config.picture_cdn}`)
|
||||
']'+`(${hexo.config.picture_cdn}`)
|
||||
}
|
||||
return data;
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user