mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
helpers: Fix TrimShortHTML when used with AsciiDoc content
Fixes #12369
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
8e50ccfae7
commit
6049ba99f0
@@ -167,7 +167,7 @@ func (ns *Namespace) Markdownify(ctx context.Context, s any) (template.HTML, err
|
||||
}
|
||||
|
||||
// Strip if this is a short inline type of text.
|
||||
bb := ns.deps.ContentSpec.TrimShortHTML([]byte(ss))
|
||||
bb := ns.deps.ContentSpec.TrimShortHTML([]byte(ss), "markdown")
|
||||
|
||||
return helpers.BytesToHTML(bb), nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user