1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-25 15:41:42 +00:00

fix: array access error when token.map is null, fix #3123

This commit is contained in:
hikerpig
2019-07-24 23:49:07 +08:00
committed by Junyoung Choi
parent 7797661489
commit 972d053c83
5 changed files with 30 additions and 2 deletions

View File

@@ -4,6 +4,21 @@ The actual snapshot is saved in `markdown-test.js.snap`.
Generated by [AVA](https://ava.li).
## Markdown.render() should render footnote correctly
> Snapshot 1
`<p data-line="1"><sup class="footnote-ref"><a href="#fn1" id="fnref1">[1]</a></sup><br />␊
hello-world: <a href="https://github.com/BoostIO/Boostnote/">https://github.com/BoostIO/Boostnote/</a></p>␊
<hr class="footnotes-sep" />␊
<section class="footnotes">␊
<ol class="footnotes-list">␊
<li id="fn1" class="footnote-item"><p>hello-world <a href="#fnref1" class="footnote-backref">↩︎</a></p>␊
</li>␊
</ol>␊
</section>␊
`
## Markdown.render() should render line breaks correctly
> Snapshot 1