1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-01-03 03:59:18 +00:00
This commit is contained in:
Baptiste Augrain
2018-09-15 10:43:41 +02:00
parent c8466e9fa6
commit bacbfc8615
6 changed files with 116 additions and 8 deletions

View File

@@ -43,3 +43,8 @@ test('Markdown.render() should render line breaks correctly', t => {
const renderedNonBreaks = newmd.render(markdownFixtures.breaks)
t.snapshot(renderedNonBreaks)
})
test('Markdown.render() should render shortcuts correctly', t => {
const rendered = md.render(markdownFixtures.shortcuts)
t.snapshot(rendered)
})

View File

@@ -18,6 +18,14 @@ Generated by [AVA](https://ava.li).
This is the second line.</p>␊
`
## Markdown.render() should render shortcuts correctly
> Snapshot 1
`<p data-line="0"><kbd>Ctrl</kbd></p>␊
<p data-line="2"><kbd>Ctrl</kbd></p>␊
`
## Markdown.render() should renders KaTeX correctly
> Snapshot 1