diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-12-13 18:23:29 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-12-13 18:23:29 +0100 |
| commit | deed583618a2ceb91e2c166d804dee575476c07c (patch) | |
| tree | 014558cf9575c24af65f4d71d6bf3d8d82facc60 /markdown | |
| parent | 62fa3f77e8215fdaaf72ddb9df4162e0d65148da (diff) | |
fix(markdown): wrong error for bad header number
Diffstat (limited to 'markdown')
| -rw-r--r-- | markdown/ast_heading.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/ast_heading.go b/markdown/ast_heading.go index 206ff94..ad19def 100644 --- a/markdown/ast_heading.go +++ b/markdown/ast_heading.go @@ -17,7 +17,7 @@ type astHeading struct { func (a *astHeading) Eval(opt *Option) (template.HTML, *ParseError) { if a.level > 6 { - return "", &ParseError{lxs: lexers{}, internal: ErrInvalidCodeFormat} + return "", &ParseError{lxs: lexers{}, internal: ErrInvalidHeader} } var content template.HTML content, err := a.content.Eval(opt) |
