|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`Markdown.render() should render PlantUML Ditaa correctly 1`] = ` |
| 4 | +"<img src=\\"http://www.plantuml.com/plantuml/png/SoWkIImgISaiIKpaqjQ50cq51GLj93Q2mrMZ00NQO3cmHX3RJW4cKmDI4v9QKQ805a8nfyObCp6zA34NgCObFxiqDpMl1AIcHj4tCJqpLH5i18evG52TKbk3B8og1kmC0cvMKB1Im0NYkA2ckMRcANWabgQbvYau5YMbPfP0p4UOWmcqkHnIyrB0GG00\\" alt=\\"uml diagram\\" /> |
| 5 | +" |
| 6 | +`; |
| 7 | + |
| 8 | +exports[`Markdown.render() should render PlantUML Gantt correctly 1`] = ` |
| 9 | +"<img src=\\"http://www.plantuml.com/plantuml/svg/SoWkIImgIK_CAodXYWueoY_9BwaiI5L8IItEJC-BLSX9B2ufLZ0qLKX9h2pcYWv9BIvHA82fWaiRu906crsia5YYW6cqUh52QbuAbmEG0DiE0000\\" alt=\\"uml diagram\\" /> |
| 10 | +" |
| 11 | +`; |
| 12 | + |
| 13 | +exports[`Markdown.render() should render PlantUML MindMaps correctly 1`] = ` |
| 14 | +"<img src=\\"http://www.plantuml.com/plantuml/svg/JOzD3e8m44Rtd6BMtNW192IM5I29HEDsAbKdeLD2MvNRIsjCMCsRlFd9LpgFipV4Wy4f4o2r8kHC23Yhm3wi9A0X3XzeYNrgwx1H6wvb1KTjqtRJoYhMtexBSAqJUescwoEUq4tn3xp9Fm7XfUS5HiiFO3Gw7SjT4QUCkkKxLy2-WAvl3rkrtEclBdOCXcnMwZN7ByiN\\" alt=\\"uml diagram\\" /> |
| 15 | +" |
| 16 | +`; |
| 17 | + |
| 18 | +exports[`Markdown.render() should render PlantUML Umls correctly 1`] = ` |
| 19 | +"<img src=\\"http://www.plantuml.com/plantuml/svg/LOzD2eCm44RtESMtj0jx01V5E_G4Gvngo2_912gbTsz4LBfylCV7p5Y4ibJlbEENG2AocHV1P39hCJ6eOar8bCaZaROqyrDMnzWqXTcn8YqnGzSYqNC-q76sweoW5zOsLi57uMpHz-WESslY0jmVw1AjdaE30IPeLoVUceLTslrL3-2tS9ZA_qZRtm_vgh7PzkOF\\" alt=\\"uml diagram\\" /> |
| 20 | +" |
| 21 | +`; |
| 22 | + |
| 23 | +exports[`Markdown.render() should render PlantUML WBS correctly 1`] = ` |
| 24 | +"<img src=\\"http://www.plantuml.com/plantuml/svg/ZP2_JiD03CRtFeNdRF04fR140gdGeREv-z8plVYYimFYxSabKbaxsR9-ylTdRyxLVpvjrz5XDb6OqR6MqEPRYSXPz4BdmsdNTVJAiuP4da1JBLy8lbmxUYxZbE6Wa_CLgUI8IXymS0rf9NeL5yxKDt24EhiKfMDcRNzVO79HcX8RLdvLfZBGa_KtFx2RKcpK7TZ3dTpZfWgskMAZ9jIXr94rW4PubM1RbBZOb-6NtcS9LpgBjlj_1w9QldbPjZHxQ5pg_GC0\\" alt=\\"uml diagram\\" /> |
| 25 | +" |
| 26 | +`; |
| 27 | + |
| 28 | +exports[`Markdown.render() should render footnote correctly 1`] = ` |
| 29 | +"<p data-line=\\"1\\"><sup class=\\"footnote-ref\\"><a href=\\"#fn1\\" id=\\"fnref1\\">[1]</a></sup><br /> |
| 30 | +hello-world: <a href=\\"https://github.com/BoostIO/Boostnote/\\">https://github.com/BoostIO/Boostnote/</a></p> |
| 31 | +<hr class=\\"footnotes-sep\\" /> |
| 32 | +<section class=\\"footnotes\\"> |
| 33 | +<ol class=\\"footnotes-list\\"> |
| 34 | +<li id=\\"fn1\\" class=\\"footnote-item\\"><p>hello-world <a href=\\"#fnref1\\" class=\\"footnote-backref\\">↩︎</a></p> |
| 35 | +</li> |
| 36 | +</ol> |
| 37 | +</section> |
| 38 | +" |
| 39 | +`; |
| 40 | +
|
| 41 | +exports[`Markdown.render() should render line breaks correctly 1`] = ` |
| 42 | +"<p data-line=\\"0\\">This is the first line.<br /> |
| 43 | +This is the second line.</p> |
| 44 | +" |
| 45 | +`; |
| 46 | + |
| 47 | +exports[`Markdown.render() should render line breaks correctly 2`] = ` |
| 48 | +"<p data-line=\\"0\\">This is the first line. |
| 49 | +This is the second line.</p> |
| 50 | +" |
| 51 | +`; |
| 52 | +
|
| 53 | +exports[`Markdown.render() should render shortcuts correctly 1`] = ` |
| 54 | +"<p data-line=\\"0\\"><kbd>Ctrl</kbd></p> |
| 55 | +<p data-line=\\"2\\"><kbd>Ctrl</kbd></p> |
| 56 | +" |
| 57 | +`; |
| 58 | +
|
| 59 | +exports[`Markdown.render() should renders KaTeX correctly 1`] = ` |
| 60 | +"<span class=\\"katex-display\\"><span class=\\"katex\\"><span class=\\"katex-mathml\\"><math><semantics><mrow><mi>c</mi><mo>=</mo><mi>p</mi><mi>m</mi><mi>s</mi><mi>q</mi><mi>r</mi><mi>t</mi><mrow><msup><mi>a</mi><mn>2</mn></msup><mo>+</mo><msup><mi>b</mi><mn>2</mn></msup></mrow></mrow><annotation encoding=\\"application/x-tex\\">c = pmsqrt{a^2 + b^2}</annotation></semantics></math></span><span class=\\"katex-html\\" aria-hidden=\\"true\\"><span class=\\"base\\"><span class=\\"strut\\" style=\\"height:0.43056em;vertical-align:0em;\\"></span><span class=\\"mord mathdefault\\">c</span><span class=\\"mspace\\" style=\\"margin-right:0.2777777777777778em;\\"></span><span class=\\"mrel\\">=</span><span class=\\"mspace\\" style=\\"margin-right:0.2777777777777778em;\\"></span></span><span class=\\"base\\"><span class=\\"strut\\" style=\\"height:1.0585479999999998em;vertical-align:-0.19444em;\\"></span><span class=\\"mord mathdefault\\">p</span><span class=\\"mord mathdefault\\">m</span><span class=\\"mord mathdefault\\">s</span><span class=\\"mord mathdefault\\" style=\\"margin-right:0.03588em;\\">q</span><span class=\\"mord mathdefault\\" style=\\"margin-right:0.02778em;\\">r</span><span class=\\"mord mathdefault\\">t</span><span class=\\"mord\\"><span class=\\"mord\\"><span class=\\"mord mathdefault\\">a</span><span class=\\"msupsub\\"><span class=\\"vlist-t\\"><span class=\\"vlist-r\\"><span class=\\"vlist\\" style=\\"height:0.8641079999999999em;\\"><span style=\\"top:-3.113em;margin-right:0.05em;\\"><span class=\\"pstrut\\" style=\\"height:2.7em;\\"></span><span class=\\"sizing reset-size6 size3 mtight\\"><span class=\\"mord mtight\\">2</span></span></span></span></span></span></span></span><span class=\\"mspace\\" style=\\"margin-right:0.2222222222222222em;\\"></span><span class=\\"mbin\\">+</span><span class=\\"mspace\\" style=\\"margin-right:0.2222222222222222em;\\"></span><span class=\\"mord\\"><span class=\\"mord mathdefault\\">b</span><span class=\\"msupsub\\"><span class=\\"vlist-t\\"><span class=\\"vlist-r\\"><span class=\\"vlist\\" style=\\"height:0.8641079999999999em;\\"><span style=\\"top:-3.113em;margin-right:0.05em;\\"><span class=\\"pstrut\\" style=\\"height:2.7em;\\"></span><span class=\\"sizing reset-size6 size3 mtight\\"><span class=\\"mord mtight\\">2</span></span></span></span></span></span></span></span></span></span></span></span></span> |
| 61 | +" |
| 62 | +`; |
| 63 | +
|
| 64 | +exports[`Markdown.render() should renders abbrevations correctly 1`] = ` |
| 65 | +"<h2 id=\\"abbr\\" data-line=\\"1\\">abbr</h2> |
| 66 | +<p data-line=\\"3\\">The <abbr title=\\"Hyper Text Markup Language\\">HTML</abbr> specification<br /> |
| 67 | +is maintained by the <abbr title=\\"World Wide Web Consortium\\">W3C</abbr>.</p> |
| 68 | +" |
| 69 | +`; |
| 70 | +
|
| 71 | +exports[`Markdown.render() should renders checkboxes 1`] = ` |
| 72 | +"<ul> |
| 73 | +<li class=\\"taskListItem\\" data-line=\\"1\\"><input type=\\"checkbox\\" id=\\"checkbox-2\\" /> Unchecked</li> |
| 74 | +<li class=\\"taskListItem checked\\" data-line=\\"2\\"><input type=\\"checkbox\\" checked id=\\"checkbox-3\\" /> Checked</li> |
| 75 | +</ul> |
| 76 | +" |
| 77 | +`; |
| 78 | + |
| 79 | +exports[`Markdown.render() should renders codeblock correctly 1`] = ` |
| 80 | +"<pre class=\\"code CodeMirror\\" data-line=\\"1\\"> |
| 81 | + <span class=\\"filename\\">filename.js</span> |
| 82 | + <span class=\\"lineNumber CodeMirror-gutters\\"><span class=\\"CodeMirror-linenumber\\">2</span></span> |
| 83 | + <code class=\\"js\\">var project = 'boostnote'; |
| 84 | +</code> |
| 85 | + </pre>" |
| 86 | +`; |
| 87 | +
|
| 88 | +exports[`Markdown.render() should renders definition lists correctly 1`] = ` |
| 89 | +"<h2 id=\\"definition-list\\" data-line=\\"1\\">definition list</h2> |
| 90 | +<h3 id=\\"list-1\\" data-line=\\"3\\">list 1</h3> |
| 91 | +<dl> |
| 92 | +<dt data-line=\\"5\\">Term 1</dt> |
| 93 | +<dd data-line=\\"6\\">Definition 1</dd> |
| 94 | +<dt data-line=\\"8\\">Term 2</dt> |
| 95 | +<dd data-line=\\"9\\">Definition 2a</dd> |
| 96 | +<dd data-line=\\"10\\">Definition 2b</dd> |
| 97 | +</dl> |
| 98 | +<p data-line=\\"12\\">Term 3<br /> |
| 99 | +~</p> |
| 100 | +<h3 id=\\"list-2\\" data-line=\\"16\\">list 2</h3> |
| 101 | +<dl> |
| 102 | +<dt data-line=\\"18\\">Term 1</dt> |
| 103 | +<dd data-line=\\"20\\"> |
| 104 | +<p data-line=\\"20\\">Definition 1</p> |
| 105 | +</dd> |
| 106 | +<dt data-line=\\"22\\">Term 2 with <em>inline markup</em></dt> |
| 107 | +<dd data-line=\\"24\\"> |
| 108 | +<p data-line=\\"24\\">Definition 2</p> |
| 109 | +<pre><code> { some code, part of Definition 2 } |
| 110 | +</code></pre> |
| 111 | +<p data-line=\\"28\\">Third paragraph of definition 2.</p> |
| 112 | +</dd> |
| 113 | +</dl> |
| 114 | +" |
| 115 | +`; |
| 116 | +
|
| 117 | +exports[`Markdown.render() should renders markdown correctly 1`] = ` |
| 118 | +"<h1 id=\\"Welcome-to-Boostnote\\" data-line=\\"1\\">Welcome to Boostnote!</h1> |
| 119 | +<h2 id=\\"Click-here-to-edit-markdown\\" data-line=\\"2\\">Click here to edit markdown 👋</h2> |
| 120 | +<iframe width=\\"560\\" height=\\"315\\" src=\\"https://www.youtube.com/embed/L0qNPLsvmyM\\" frameborder=\\"0\\" allowfullscreen></iframe> |
| 121 | +<h2 id=\\"Docs\\" data-line=\\"6\\">Docs 📝</h2> |
| 122 | +<ul> |
| 123 | +<li data-line=\\"7\\"><a href=\\"https://hackernoon.com/boostnote-boost-your-happiness-productivity-and-creativity-315034efeebe\\">Boostnote | Boost your happiness, productivity and creativity.</a></li> |
| 124 | +<li data-line=\\"8\\"><a href=\\"https://github.com/BoostIO/Boostnote/wiki/Cloud-Syncing-and-Backup\\">Cloud Syncing & Backups</a></li> |
| 125 | +<li data-line=\\"9\\"><a href=\\"https://github.com/BoostIO/Boostnote/wiki/Sync-Data-Across-Desktop-and-Mobile-apps\\">How to sync your data across Desktop and Mobile apps</a></li> |
| 126 | +<li data-line=\\"10\\"><a href=\\"https://github.com/BoostIO/Boostnote/wiki/Evernote\\">Convert data from <strong>Evernote</strong> to Boostnote.</a></li> |
| 127 | +<li data-line=\\"11\\"><a href=\\"https://github.com/BoostIO/Boostnote/wiki/Keyboard-Shortcuts\\">Keyboard Shortcuts</a></li> |
| 128 | +<li data-line=\\"12\\"><a href=\\"https://github.com/BoostIO/Boostnote/wiki/Keymaps-in-Editor-mode\\">Keymaps in Editor mode</a></li> |
| 129 | +<li data-line=\\"13\\"><a href=\\"https://github.com/BoostIO/Boostnote/wiki/Syntax-Highlighting\\">How to set syntax highlight in Snippet note</a></li> |
| 130 | +</ul> |
| 131 | +<hr /> |
| 132 | +<h2 id=\\"Article-Archive\\" data-line=\\"17\\">Article Archive 📚</h2> |
| 133 | +<ul> |
| 134 | +<li data-line=\\"18\\"><a href=\\"http://bit.ly/2mOJPu7\\">Reddit English</a></li> |
| 135 | +<li data-line=\\"19\\"><a href=\\"https://www.reddit.com/r/boostnote_es/\\">Reddit Spanish</a></li> |
| 136 | +<li data-line=\\"20\\"><a href=\\"https://www.reddit.com/r/boostnote_cn/\\">Reddit Chinese</a></li> |
| 137 | +<li data-line=\\"21\\"><a href=\\"https://www.reddit.com/r/boostnote_jp/\\">Reddit Japanese</a></li> |
| 138 | +</ul> |
| 139 | +<hr /> |
| 140 | +<h2 id=\\"Community\\" data-line=\\"25\\">Community 🍻</h2> |
| 141 | +<ul> |
| 142 | +<li data-line=\\"26\\"><a href=\\"http://bit.ly/2AWWzkD\\">GitHub</a></li> |
| 143 | +<li data-line=\\"27\\"><a href=\\"http://bit.ly/2z8BUJZ\\">Twitter</a></li> |
| 144 | +<li data-line=\\"28\\"><a href=\\"http://bit.ly/2jcca8t\\">Facebook Group</a></li> |
| 145 | +</ul> |
| 146 | +" |
| 147 | +`; |
| 148 | +
|
| 149 | +exports[`Markdown.render() should renders sub correctly 1`] = ` |
| 150 | +"<h2 id=\\"sub\\" data-line=\\"1\\">sub</h2> |
| 151 | +<p data-line=\\"3\\">H<sub>2</sub>0</p> |
| 152 | +" |
| 153 | +`; |
| 154 | +
|
| 155 | +exports[`Markdown.render() should renders sup correctly 1`] = ` |
| 156 | +"<h2 id=\\"sup\\" data-line=\\"1\\">sup</h2> |
| 157 | +<p data-line=\\"3\\">29<sup>th</sup></p> |
| 158 | +" |
| 159 | +`; |
| 160 | +
|
| 161 | +exports[`Markdown.render() should text with quotes correctly 1`] = ` |
| 162 | +"<p data-line=\\"0\\">This is a “QUOTE”.</p> |
| 163 | +" |
| 164 | +`; |
| 165 | +
|
| 166 | +exports[`Markdown.render() should text with quotes correctly 2`] = ` |
| 167 | +"<p data-line=\\"0\\">This is a "QUOTE".</p> |
| 168 | +" |
| 169 | +`; |
0 commit comments