astro/packages/markdown/remark/test/shiki.js

13 lines
363 B
JavaScript
Raw Normal View History

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 () => {
2023-10-04 10:26:21 +00:00
const { code } = await processor.render('```\ntest\n```');
2023-10-04 10:26:21 +00:00
chai.expect(code).not.to.contain('is:raw');
});
2023-10-04 10:26:21 +00:00
});