mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
feat: implement indent for list nodes
This commit is contained in:
@ -30,6 +30,18 @@ func TestOrderedListParser(t *testing.T) {
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
text: " 1. Hello World",
|
||||
node: &ast.OrderedList{
|
||||
Number: "1",
|
||||
Indent: 2,
|
||||
Children: []ast.Node{
|
||||
&ast.Text{
|
||||
Content: "Hello World",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
text: "1aa. Hello World",
|
||||
node: nil,
|
||||
|
Reference in New Issue
Block a user