mirror of
https://github.com/tenox7/wrp.git
synced 2024-12-22 06:29:16 +00:00
no extensions
This commit is contained in:
parent
5a86c32d9a
commit
a212a14bd8
2
wrp.go
2
wrp.go
@ -436,7 +436,7 @@ func (rq *wrpReq) toMarkdown() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
log.Printf("Got %v bytes from jina.ai", len(md))
|
log.Printf("Got %v bytes from jina.ai", len(md))
|
||||||
p := parser.NewWithExtensions(parser.CommonExtensions | parser.Autolink)
|
p := parser.New()
|
||||||
d := p.Parse(md)
|
d := p.Parse(md)
|
||||||
ast.WalkFunc(d, func(node ast.Node, entering bool) ast.WalkStatus {
|
ast.WalkFunc(d, func(node ast.Node, entering bool) ast.WalkStatus {
|
||||||
if link, ok := node.(*ast.Link); ok && entering {
|
if link, ok := node.(*ast.Link); ok && entering {
|
||||||
|
Loading…
Reference in New Issue
Block a user