feat: implement auto link parser

This commit is contained in:
Steven
2023-12-27 08:44:51 +08:00
parent 6fac116d8c
commit c8d7f93dca
14 changed files with 418 additions and 179 deletions

View File

@@ -82,6 +82,16 @@ func (*Link) Type() NodeType {
return LinkNode
}
type AutoLink struct {
BaseInline
URL string
}
func (*AutoLink) Type() NodeType {
return AutoLinkNode
}
type Tag struct {
BaseInline