diff --git a/test/unit/render.test.js b/test/unit/render.test.js index 28e88ac0e..43a87248d 100644 --- a/test/unit/render.test.js +++ b/test/unit/render.test.js @@ -251,6 +251,43 @@ describe('render', function() { ` ); }); + + it('ignore', async function() { + const { docsify } = await init(); + const output = docsify.compiler.compile( + '## h2 tag ' + ); + expectSameDom( + output, + ` +

+ + h2 tag + +

` + ); + }); + + it('ignore-all', async function() { + const { docsify } = await init(); + const output = docsify.compiler.compile( + `# h1 tag ` + `\n## h2 tag` + ); + expectSameDom( + output, + ` +

+ + h1 tag + +

+

+ + h2 tag + +

` + ); + }); }); describe('link', function() {