Skip to content

Commit

Permalink
Add BibliographyWrapper in other renderers
Browse files Browse the repository at this point in the history
Fixes up #199 and make tests green again.

Signed-off-by: Miek Gieben <[email protected]>
  • Loading branch information
miekg committed Oct 27, 2023
1 parent 424a299 commit 73af292
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion render/man/renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ func (r *Renderer) RenderNode(w io.Writer, node ast.Node, entering bool) ast.Wal
r.Title = node // save for later.
case *mast.Authors:
r.authors(w, node, entering)
case *mast.Bibliography:
case *mast.Bibliography, *mast.BibliographyWrapper:
if entering {
r.outs(w, "\n.SH \"")
r.outs(w, strings.ToUpper(r.opts.Language.Bibliography()))
Expand Down
2 changes: 1 addition & 1 deletion render/mhtml/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (r RendererOptions) RenderHook(w io.Writer, node ast.Node, entering bool) (
}
io.WriteString(w, `<h1 id="footnote-section">`)
io.WriteString(w, r.Language.Footnotes())
case *mast.Bibliography:
case *mast.Bibliography, *mast.BibliographyWrapper:
if !entering {
io.WriteString(w, "</dl>\n")
return ast.GoToNext, true
Expand Down

0 comments on commit 73af292

Please sign in to comment.