mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
062623438b
* chore: use biome to sort imports * do the sorting * Update package.json Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> --------- Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
18 lines
554 B
JavaScript
18 lines
554 B
JavaScript
import assert from 'node:assert/strict';
|
|
import { before, describe, it } from 'node:test';
|
|
import { createMarkdownProcessor } from '../dist/index.js';
|
|
|
|
describe('entities', async () => {
|
|
let processor;
|
|
|
|
before(async () => {
|
|
processor = await createMarkdownProcessor();
|
|
});
|
|
|
|
it('should not unescape entities in regular Markdown', async () => {
|
|
const markdown = `<i>This should NOT be italic</i>`;
|
|
const { code } = await processor.render(markdown);
|
|
|
|
assert.equal(code, `<p><i>This should NOT be italic</i></p>`);
|
|
});
|
|
});
|