We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae45b32 commit e30a5f6Copy full SHA for e30a5f6
src/plugins/search/component.js
@@ -148,6 +148,25 @@ function doSearch(value) {
148
149
let html = '';
150
matchs.forEach(post => {
151
+ if (/<!-- {docsify-ignore} -->/g.test(post.title)) {
152
+ post.title = post.title.replace('<!-- {docsify-ignore} -->', '');
153
+ }
154
+
155
+ if (/{docsify-ignore}/g.test(post.title)) {
156
+ post.title = post.title.replace('{docsify-ignore}', '');
157
158
159
+ if (/<!-- {docsify-ignore-all} -->/g.test(post.title)) {
160
+ post.title = post.title.replace(
161
+ '<!-- {docsify-ignore-all} -->',
162
+ ''
163
+ );
164
165
166
+ if (/{docsify-ignore-all}/g.test(post.title)) {
167
+ post.title = post.title.replace('{docsify-ignore-all}', '');
168
169
170
html += `<div class="matching-post">
171
<a href="${post.url}">
172
<h2>${post.title}</h2>
0 commit comments