File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -269,14 +269,14 @@ describe('render', function() {
269
269
it ( 'ignore-html-comments' , async function ( ) {
270
270
const { docsify } = await init ( ) ;
271
271
const output = docsify . compiler . compile (
272
- '## h2 tag <!-- {docsify-ignore} -->'
272
+ '## h2 tag ignore <!-- {docsify-ignore} -->'
273
273
) ;
274
274
expectSameDom (
275
275
output ,
276
276
`
277
- <h2 id="h2-tag">
278
- <a href="#/?id=h2-tag" data-id="h2-tag" class="anchor">
279
- <span>h2 tag </span>
277
+ <h2 id="h2-tag-ignore ">
278
+ <a href="#/?id=h2-tag-ignore " data-id="h2-tag-ignore " class="anchor">
279
+ <span>h2 tag ignore </span>
280
280
</a>
281
281
</h2>`
282
282
) ;
@@ -306,14 +306,14 @@ describe('render', function() {
306
306
it ( 'ignore-all-html-comments' , async function ( ) {
307
307
const { docsify } = await init ( ) ;
308
308
const output = docsify . compiler . compile (
309
- `# h1 tag <!-- {docsify-ignore-all} -->` + `\n## h2 tag`
309
+ `# h1 tag ignore <!-- {docsify-ignore-all} -->` + `\n## h2 tag`
310
310
) ;
311
311
expectSameDom (
312
312
output ,
313
313
`
314
314
<h1 id="h1-tag">
315
- <a href="#/?id=h1-tag" data-id="h1-tag" class="anchor">
316
- <span>h1 tag </span>
315
+ <a href="#/?id=h1-tag-ignore " data-id="h1-tag-ignore " class="anchor">
316
+ <span>h1 tag ignore </span>
317
317
</a>
318
318
</h1>
319
319
<h2 id="h2-tag">
You can’t perform that action at this time.
0 commit comments