1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

- add data-line attribute to definition lists and lists

- add tests
This commit is contained in:
Baptiste Augrain
2018-09-17 22:46:20 +02:00
parent 15b9f8e13f
commit 76928e43a3
6 changed files with 156 additions and 20 deletions

View File

@@ -43,3 +43,23 @@ test('Markdown.render() should render line breaks correctly', t => {
const renderedNonBreaks = newmd.render(markdownFixtures.breaks)
t.snapshot(renderedNonBreaks)
})
test('Markdown.render() should renders abbrevations correctly', t => {
const rendered = md.render(markdownFixtures.abbrevations)
t.snapshot(rendered)
})
test('Markdown.render() should renders sub correctly', t => {
const rendered = md.render(markdownFixtures.subTexts)
t.snapshot(rendered)
})
test('Markdown.render() should renders sup correctly', t => {
const rendered = md.render(markdownFixtures.supTexts)
t.snapshot(rendered)
})
test('Markdown.render() should renders definition lists correctly', t => {
const rendered = md.render(markdownFixtures.deflists)
t.snapshot(rendered)
})