mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
feat: image and link parser (#1744)
* feat: image and link parser * chore: update
This commit is contained in:
@ -17,7 +17,7 @@ func TestParagraphParser(t *testing.T) {
|
||||
paragraph: nil,
|
||||
},
|
||||
{
|
||||
text: "Hello world!",
|
||||
text: "Hello world",
|
||||
paragraph: &ParagraphParser{
|
||||
ContentTokens: []*tokenizer.Token{
|
||||
{
|
||||
@ -30,14 +30,14 @@ func TestParagraphParser(t *testing.T) {
|
||||
},
|
||||
{
|
||||
Type: tokenizer.Text,
|
||||
Value: "world!",
|
||||
Value: "world",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
text: `Hello
|
||||
world!`,
|
||||
world`,
|
||||
paragraph: &ParagraphParser{
|
||||
ContentTokens: []*tokenizer.Token{
|
||||
{
|
||||
@ -53,7 +53,7 @@ world!`,
|
||||
},
|
||||
{
|
||||
text: `Hello \n
|
||||
world!`,
|
||||
world`,
|
||||
paragraph: &ParagraphParser{
|
||||
ContentTokens: []*tokenizer.Token{
|
||||
{
|
||||
|
Reference in New Issue
Block a user