diff options
Diffstat (limited to 'packages/gitbook-markdown/test')
-rw-r--r-- | packages/gitbook-markdown/test/page.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/gitbook-markdown/test/page.js b/packages/gitbook-markdown/test/page.js index 3bc5cd2..6190ee7 100644 --- a/packages/gitbook-markdown/test/page.js +++ b/packages/gitbook-markdown/test/page.js @@ -38,4 +38,11 @@ describe('Page parsing', function() { "\nHello\n{% raw %}\n```\nworld\nhello\n```\n{% endraw %}" ); }); + + it('should escape codeblocks with nunjucks tags', function() { + assert.equal( + page.prepare('Hello {{ "Bonjour" }} ```test```'), + '\nHello {{ "Bonjour" }} {% raw %}`test`{% endraw %}\n' + ); + }); }); |