mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-30 12:49:41 +02:00
Add test
This commit is contained in:
@@ -379,10 +379,12 @@ with no formatting`;
|
||||
});
|
||||
|
||||
test('Mixed formatting', () => {
|
||||
const input = `*Italic* and **bold** formatting`;
|
||||
expect(markdownToHTML(`*Italic* and **bold** formatting`)).toMatchInlineSnapshot(
|
||||
'"<p><em>Italic</em> and <strong>bold</strong> formatting</p>"'
|
||||
);
|
||||
|
||||
const expectedOutput = `<p><em>Italic</em> and <strong>bold</strong> formatting</p>`;
|
||||
const output = markdownToHTML(input);
|
||||
expect(output).toEqual(expectedOutput);
|
||||
expect(markdownToHTML('special characters: `<p>hi</p>`')).toMatchInlineSnapshot(
|
||||
'"<p>special characters: <code><p>hi</p></code></p>"'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user