astro/packages/markdown/remark/test/shiki.js
2023-10-04 10:26:21 +00:00

12 lines
363 B
JavaScript

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');
});
});