repochecker/grammalecte: Fix CodeSpan

This commit is contained in:
nemunaire 2022-11-24 19:41:45 +01:00
commit 84f85d631a
2 changed files with 20 additions and 1 deletions

View file

@ -54,6 +54,11 @@ func (r *VoidRenderer) renderAutoLink(w util.BufWriter, source []byte, node ast.
}
func (r *VoidRenderer) renderCodeSpan(w util.BufWriter, source []byte, n ast.Node, entering bool) (ast.WalkStatus, error) {
if !entering {
return ast.WalkContinue, nil
}
_, _ = w.WriteString(`SubstitutDeCode`)
return ast.WalkSkipChildren, nil
}