2023-10-04 10:23:58 +00:00
|
|
|
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:23:58 +00:00
|
|
|
|
2023-10-04 10:26:21 +00:00
|
|
|
chai.expect(code).not.to.contain('is:raw');
|
2023-10-04 10:23:58 +00:00
|
|
|
});
|
2023-10-04 10:26:21 +00:00
|
|
|
});
|