File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,25 @@ function doSearch(value) {
148
148
149
149
let html = '' ;
150
150
matchs . forEach ( post => {
151
+ if ( / & l t ; ! - - { docsify-i g n o r e } - - & g t ; / g. test ( post . title ) ) {
152
+ post . title = post . title . replace ( '<!-- {docsify-ignore} -->' , '' ) ;
153
+ }
154
+
155
+ if ( / { d o c s i f y - i g n o r e } / g. test ( post . title ) ) {
156
+ post . title = post . title . replace ( '{docsify-ignore}' , '' ) ;
157
+ }
158
+
159
+ if ( / & l t ; ! - - { docsify-i g n o r e - a l l } - - & g t ; / g. test ( post . title ) ) {
160
+ post . title = post . title . replace (
161
+ '<!-- {docsify-ignore-all} -->' ,
162
+ ''
163
+ ) ;
164
+ }
165
+
166
+ if ( / { d o c s i f y - i g n o r e - a l l } / g. test ( post . title ) ) {
167
+ post . title = post . title . replace ( '{docsify-ignore-all}' , '' ) ;
168
+ }
169
+
151
170
html += `<div class="matching-post">
152
171
<a href="${ post . url } ">
153
172
<h2>${ post . title } </h2>
You can’t perform that action at this time.
0 commit comments