Skip to content

Commit

Permalink
✅ Add testcases siyuan-note/siyuan#13909
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jan 30, 2025
1 parent c09fdb5 commit 31747ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/p2p_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ func TestBlockDOM2InlineBlockDOM(t *testing.T) {

var blockDOM2StdMd = []parseTest{

{"17", "<span data-type=\"a\" data-href=\"bar baz\">foo</span>", "[foo](bar%20baz)\n"},
{"16", "<div data-node-id=\"20231229113324-zgenpx4\" data-node-index=\"1\" data-type=\"NodeParagraph\" class=\"p protyle-wysiwyg--select\" updated=\"20231229113524\"><div contenteditable=\"true\" spellcheck=\"false\"><span data-type=\"inline-math\" data-subtype=\"math\" data-content=\"foo\\\\\nbar\" contenteditable=\"false\" class=\"render-node\" data-render=\"true\"><span class=\"katex\"><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"strut\" style=\"height:0.8889em;vertical-align:-0.1944em;\"></span><span class=\"mord mathnormal\" style=\"margin-right:0.10764em;\">f</span><span class=\"mord mathnormal\">oo</span></span><span class=\"mspace newline\"></span><span class=\"base\"><span class=\"strut\" style=\"height:0.6944em;\"></span><span class=\"mord mathnormal\">ba</span><span class=\"mord mathnormal\" style=\"margin-right:0.02778em;\">r</span></span></span></span></span>​</div><div class=\"protyle-attr\" contenteditable=\"false\">​</div></div>", "$foo\\\\ bar$\n"},
{"15", "foo <span data-type=\"em inline-math\" data-subtype=\"math\" data-content=\"bar\" contenteditable=\"false\" class=\"render-node\" data-render=\"true\"><span class=\"katex\"><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"strut\" style=\"height:0.6595em;\"></span><span class=\"mord mathnormal\">bar</span></span></span></span></span> baz", "foo *$bar$* baz\n"},
{"14", "foo<span data-type=\"strong\">bar </span>bar", "foo**bar** bar\n"},
Expand Down

0 comments on commit 31747ff

Please sign in to comment.