Skip to content

Commit

Permalink
✅ Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Sep 1, 2024
1 parent 35ae4cc commit ae3552e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/h2m_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (

var html2MdTests = []parseTest{

{"183", "<pre data-index=\"0\" class=\"set-code-show\" name=\"code\"><code class=\"language-css hljs\"><ol class=\"hljs-ln\" style=\"width:100%\"><li><div class=\"hljs-ln-numbers\"><div class=\"hljs-ln-line hljs-ln-n\" data-line-number=\"1\"></div></div><div class=\"hljs-ln-code\"><div class=\"hljs-ln-line\"><span class=\"hljs-selector-tag\">html</span> {</div></div></li><li><div class=\"hljs-ln-numbers\"><div class=\"hljs-ln-line hljs-ln-n\" data-line-number=\"2\"></div></div><div class=\"hljs-ln-code\"><div class=\"hljs-ln-line\"> <span class=\"hljs-attribute\">overflow-y</span>: overlay;</div></div></li><li><div class=\"hljs-ln-numbers\"><div class=\"hljs-ln-line hljs-ln-n\" data-line-number=\"3\"></div></div><div class=\"hljs-ln-code\"><div class=\"hljs-ln-line\">}</div></div></li></ol></code><div class=\"hljs-button signin active\" data-title=\"登录复制\" data-report-click=\"{&quot;spm&quot;:&quot;1001.2101.3001.4334&quot;}\" onclick=\"hljs.signin(event)\"></div></pre>", "```css\nhtml {\n overflow-y: overlay;\n}\n```\n"},
{"182", "<p><markerow8 data-id=\"G2wN\" data-pkid=\"5272681\" class=\"wucaiclrx1\" style=\"color: rgb(0, 0, 0); background-color: rgba(244, 220, 97, 0.698);\">清晨的阳光透过淡薄的云层,纷纷扬扬地落在了</markerow8><strong><markerow8 data-id=\"G2wN\" data-pkid=\"5272681\" class=\"wucaiclrx1\" style=\"color: rgb(0, 0, 0); background-color: rgba(244, 220, 97, 0.698);\">幽静的林间小道</markerow8></strong><markerow8 data-id=\"G2wN\" data-pkid=\"5272681\" class=\"wucaiclrx1\" style=\"color: rgb(0, 0, 0); background-color: rgba(244, 220, 97, 0.698);\">上。树叶在微</markerow8><em><markerow8 data-id=\"G2wN\" data-pkid=\"5272681\" class=\"wucaiclrx1\" style=\"color: rgb(0, 0, 0); background-color: rgba(244, 220, 97, 0.698);\">风中轻轻摇曳,</markerow8></em> <markerow8 data-id=\"G2wN\" data-pkid=\"5272681\" class=\"wucaiclrx1\" style=\"color: rgb(0, 0, 0); background-color: rgba(244, 220, 97, 0.698);\">仿佛在跳着一场优雅的舞蹈。草丛中,晶莹的露珠闪烁着微光,宛如一颗颗细碎的宝石。鸟儿欢快地歌唱着,声音</markerow8><em><strong><markerow8 data-id=\"G2wN\" data-pkid=\"5272681\" class=\"wucaiclrx1\" style=\"color: rgb(0, 0, 0); background-color: rgba(244, 220, 97, 0.698);\">清脆悦耳,在这宁静而美丽的画面中增添了一</markerow8></strong></em><markerow8 data-id=\"G2wN\" data-pkid=\"5272681\" class=\"wucaiclrx1\" style=\"color: rgb(0, 0, 0); background-color: rgba(244, 220, 97, 0.698);\">抹灵动的气息。</markerow8></p>", "清晨的阳光透过淡薄的云层,纷纷扬扬地落在了**幽静的林间小道**上。树叶在微*风中轻轻摇曳,* 仿佛在跳着一场优雅的舞蹈。草丛中,晶莹的露珠闪烁着微光,宛如一颗颗细碎的宝石。鸟儿欢快地歌唱着,声音***清脆悦耳,在这宁静而美丽的画面中增添了一***抹灵动的气息。\n"},
{"181", "<p><span class=\"vditor-reset__preview\"><img src=\"https://b3logfile.com/file/2024/08/image-tU91NvB.png?imageView2/2/interlace/1/format/webp\" alt=\"image.png\" style=\"background-image: none; background-color: transparent;\"><div class=\"fn__flex-inline\">\n<svg><use xlink:href=\"#iconPhotoActual\"></use></svg>\n<span class=\"fn__space5\"></span>496 x 344</div></span></p>", "![image.png](https://b3logfile.com/file/2024/08/image-tU91NvB.png?imageView2/2/interlace/1/format/webp)\n"},
{"180", "<ul class=\"fa-ul\">\n <li data-marker=\"*\"><span class=\"fa-li\"><i class=\"fas fa-square\"></i></span>\n <p>foo</p>\n\n <div class=\"language-c highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code><span class=\"cp\">#include</span> <span class=\"cpf\">&lt;stdio.h&gt;</span><span class=\"cp\">\n</span>\n<span class=\"kt\">int</span> <span class=\"nf\">main</span><span class=\"p\">(</span><span class=\"kt\">void</span><span class=\"p\">)</span>\n<span class=\"p\">{</span>\n <span class=\"n\">string</span> <span class=\"n\">answer</span> <span class=\"o\">=</span> <span class=\"n\">get_string</span><span class=\"p\">(</span><span class=\"s\">\"What's your name? \"</span><span class=\"p\">);</span>\n <span class=\"n\">printf</span><span class=\"p\">(</span><span class=\"s\">\"hello, %s</span><span class=\"se\">\\n</span><span class=\"s\">\"</span><span class=\"p\">,</span> <span class=\"n\">answer</span><span class=\"p\">);</span>\n<span class=\"p\">}</span>\n</code></pre></div> </div>\n <p>bar</p>\n </li>\n</ul>", "* foo\n\n ```c\n #include <stdio.h>\n\n int main(void)\n {\n string answer = get_string(\"What's your name? \");\n printf(\"hello, %s\\n\", answer);\n }\n ```\n\n bar\n"},
Expand Down

0 comments on commit ae3552e

Please sign in to comment.