diff options
Diffstat (limited to 'packages/markdown/remark/test/shiki.js')
-rw-r--r-- | packages/markdown/remark/test/shiki.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/markdown/remark/test/shiki.js b/packages/markdown/remark/test/shiki.js new file mode 100644 index 000000000..5077623e8 --- /dev/null +++ b/packages/markdown/remark/test/shiki.js @@ -0,0 +1,16 @@ +import { createMarkdownProcessor } from '../dist/index.js'; +import chai from 'chai'; + +describe('shiki syntax highlighting', async () => { + const processor = await createMarkdownProcessor(); + + it('does not add is:raw to the output', async () => { + const { + code, + } = await processor.render('```\ntest\n```'); + + chai + .expect(code) + .not.to.contain("is:raw"); + }); +});
\ No newline at end of file |