help / color / mirror / Atom feed
* Implicit Pp in HTML mode
@ 2019-06-13  7:26 Anthony J. Bentley
  2019-09-05 14:59 ` Ingo Schwarze
  0 siblings, 1 reply; 2+ messages in thread
From: Anthony J. Bentley @ 2019-06-13  7:26 UTC (permalink / raw)
  To: tech


It's common in mdoc(7) to leave out a Pp immediately after Sh:

For each operand that names a

When mandoc(1) converts this to HTML, it doesn't add a <p> tag in front.
Although this is not a validation error, it does mean the resulting DOM
is not what's expected.

If you add "p { color: red; }" to the stylesheet, it's immediately clear
that the first paragraph of a section is not and cannot be styled like
the rest, because there's nothing telling the browser that it's a
paragraph in the first place. Because it is semantically a paragraph,
it should be wrapped in <p> in HTML output.

Anthony J. Bentley
 To unsubscribe send an email to

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-09-05 14:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-13  7:26 Implicit Pp in HTML mode Anthony J. Bentley
2019-09-05 14:59 ` Ingo Schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).