mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
Merge 8835a2656b into 04410ff159
This commit is contained in:
commit
4c040ac99e
1 changed files with 3 additions and 0 deletions
|
|
@ -160,6 +160,9 @@ func (r *renderer) Render(w io.Writer, source []byte, n ast.Node) error {
|
|||
}
|
||||
err := ast.Walk(n, func(n ast.Node, entering bool) (ast.WalkStatus, error) {
|
||||
s := ast.WalkStatus(ast.WalkContinue)
|
||||
if n.Kind() > r.maxKind {
|
||||
return s, nil
|
||||
}
|
||||
var err error
|
||||
f := r.nodeRendererFuncs[n.Kind()]
|
||||
if f != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue