mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
Filter picture
use regular filter picturn in search
This commit is contained in:
parent
d469442eae
commit
a6b46a3e26
@ -87,6 +87,8 @@ function search (keywords) {
|
||||
var postTitle = post.title && post.title.trim();
|
||||
var postContent = post.body && post.body.trim();
|
||||
var postUrl = post.slug || '';
|
||||
|
||||
postContent = postContent.replace(/!\[.*\]\((.+)\)/g,'');
|
||||
|
||||
if (postTitle && postContent) {
|
||||
keywords.forEach(function (keyword, i) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user