mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-16 18:54:12 +01:00
Add test
This commit is contained in:
@@ -379,10 +379,12 @@ with no formatting`;
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('Mixed 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>`;
|
expect(markdownToHTML('special characters: `<p>hi</p>`')).toMatchInlineSnapshot(
|
||||||
const output = markdownToHTML(input);
|
'"<p>special characters: <code><p>hi</p></code></p>"'
|
||||||
expect(output).toEqual(expectedOutput);
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user