mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: update inline parser
This commit is contained in:
@ -29,6 +29,13 @@ func TestLinkParser(t *testing.T) {
|
||||
text: "[alte]( htt ps :/ /example.com)",
|
||||
link: nil,
|
||||
},
|
||||
{
|
||||
text: "[your/slash](https://example.com)",
|
||||
link: &ast.Link{
|
||||
Text: "your/slash",
|
||||
URL: "https://example.com",
|
||||
},
|
||||
},
|
||||
{
|
||||
text: "[hello world](https://example.com)",
|
||||
link: &ast.Link{
|
||||
|
Reference in New Issue
Block a user