Skip to content

Commit

Permalink
For man output fake a heading with .PP .B instead of .SS
Browse files Browse the repository at this point in the history
Signed-off-by: Miek Gieben <[email protected]>
  • Loading branch information
miekg committed Oct 10, 2024
1 parent af37d83 commit 3c9b4b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion render/man/renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,12 @@ func (r *Renderer) heading(w io.Writer, node *ast.Heading, entering bool) {
switch node.Level {
case 1, 2:
r.outs(w, "\n.SH ")
default:
case 3:
// normal subsection
r.outs(w, "\n.SS ")
default:
// fake a heading.
r.outs(w, "\n.PP\n.B ")
}
}
}
Expand Down

0 comments on commit 3c9b4b8

Please sign in to comment.