feat: implement embedded memo renderer

This commit is contained in:
Steven
2024-01-20 01:56:10 +08:00
parent 67f5ac3657
commit 8a34013558
18 changed files with 915 additions and 441 deletions

View File

@ -218,6 +218,22 @@ func TestParser(t *testing.T) {
},
},
},
{
text: "Hello\n![[memos/101]]",
nodes: []ast.Node{
&ast.Paragraph{
Children: []ast.Node{
&ast.Text{
Content: "Hello",
},
},
},
&ast.LineBreak{},
&ast.EmbeddedContent{
ResourceName: "memos/101",
},
},
},
}
for _, test := range tests {