mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: implement list html render
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user