diff --git a/lib/plugins/search.js b/lib/plugins/search.js index a573f8585..15466be67 100644 --- a/lib/plugins/search.js +++ b/lib/plugins/search.js @@ -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) {