chore: pkg imported more than once

Signed-off-by: guoguangwu <guoguangwug@gmail.com>
pull/410/head
guoguangwu 2 weeks ago
parent c3f26ca12b
commit 96e49e45ad

@ -5,7 +5,6 @@ import (
"unicode"
"github.com/yuin/goldmark"
"github.com/yuin/goldmark/ast"
gast "github.com/yuin/goldmark/ast"
"github.com/yuin/goldmark/parser"
"github.com/yuin/goldmark/text"
@ -77,7 +76,7 @@ func (p *hashtagParser) Trigger() []byte {
return []byte{'#'}
}
func (p *hashtagParser) Parse(parent ast.Node, block text.Reader, pc parser.Context) ast.Node {
func (p *hashtagParser) Parse(parent gast.Node, block text.Reader, pc parser.Context) gast.Node {
previousChar := block.PrecendingCharacter()
line, _ := block.PeekLine()
@ -189,7 +188,7 @@ func (p *colontagParser) Trigger() []byte {
return []byte{':'}
}
func (p *colontagParser) Parse(parent ast.Node, block text.Reader, pc parser.Context) ast.Node {
func (p *colontagParser) Parse(parent gast.Node, block text.Reader, pc parser.Context) gast.Node {
previousChar := block.PrecendingCharacter()
line, _ := block.PeekLine()

Loading…
Cancel
Save