Open justinmk opened 1 year ago
Maybe h4
would be a better fit?
maybe, depends on whether these headings are usually nested below h2 or h3? h3
is pretty uncommon so I was thinking that it's too granular to treat these as h4
.
Wait, you think there's consistent hierarchy in how these are used in the docs? :D
I guess my thinking was more if there's an h3
, then h4
will lead to better hierarchy, and if there is not, it's still correct (even if a heading is skipped).
(To be clear, if the gen_help_html
script requires h3
specifically, my comment is moot.)
Problem
vim :help (including
:help api
) has many "pseudo headers" that look like:Expected behavior
Treat right-aligned tags as
h3
? This is necessary so that "flow" layout doesn't join the lines. In the above example,range({spec})...
line should be ah3
heading.Parses a semver...
line should start a newblock
.