chore: implement list html render

This commit is contained in:
Steven
2023-12-16 09:01:19 +08:00
parent b00443c222
commit 6421fbc68a
5 changed files with 49 additions and 1 deletions

View File

@ -34,6 +34,14 @@ func TestHTMLRender(t *testing.T) {
text: "#article #memo",
expected: `<p><span>#article</span> <span>#memo</span></p>`,
},
{
text: "* Hello\n* world!",
expected: `<ul><li>Hello</li><li>world!</li></ul>`,
},
{
text: "1. Hello\n2. world\n* !",
expected: `<ol><li>Hello</li><li>world</li></ol><ul><li>!</li></ul>`,
},
}
for _, test := range tests {