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:
@ -31,6 +31,19 @@ func TestTaskListParser(t *testing.T) {
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
text: " + [ ] Hello World",
|
||||
node: &ast.TaskList{
|
||||
Symbol: tokenizer.PlusSign,
|
||||
Indent: 2,
|
||||
Complete: false,
|
||||
Children: []ast.Node{
|
||||
&ast.Text{
|
||||
Content: "Hello World",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
text: "* [x] **Hello**",
|
||||
node: &ast.TaskList{
|
||||
|
Reference in New Issue
Block a user