aboutsummaryrefslogtreecommitdiff
path: root/mardown/ast_header.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-09-30 20:55:02 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-09-30 20:55:02 +0200
commite20acb05fd33b8fbcfafee4b72734224093c2d20 (patch)
tree0939e74d0e7e3a8c01cf6b1fdbfa3a40be4a1936 /mardown/ast_header.go
parentf5607e75f98d50dfd0496cfd5a76bc0d905403f7 (diff)
feat(markdown): ast supports modifier
Diffstat (limited to 'mardown/ast_header.go')
-rw-r--r--mardown/ast_header.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/mardown/ast_header.go b/mardown/ast_header.go
index 07d7e1c..1526efa 100644
--- a/mardown/ast_header.go
+++ b/mardown/ast_header.go
@@ -25,7 +25,7 @@ func (a *astHeader) Eval() (template.HTML, error) {
return template.HTML(fmt.Sprintf("<h%d>%s</h%d>", a.level, content, a.level)), nil
}
-func header(lxs lexers) (block, error) {
+func header(lxs lexers) (*astHeader, error) {
b := &astHeader{level: uint(len(lxs.Current().Value))}
var err error
b.content, err = paragraph(lxs, true)