Open dimztimz opened 1 month ago
: term
definition
: otherterm
definition
: term definition : otherterm definition
That does not seem to work in the online version of djot. It puts the term and the definition under <dt>
while <dd>
is empty.
<dl>
<dt>term
definition</dt>
<dd>
</dd>
<dt>otherterm
definition</dt>
<dd>
</dd>
</dl>
Sorry, my mistake!
Perhaps we need to modify (or reinterpret) the rule for tight lists for definition lists. Currently these are being counted as "loose" lists because of the blank line after the term. But since that blank line is required, there is no way to make a tight definition list. The obvious thing would be to disregard that first blank in determining whether the list is tight.
But was is the real problem of having a <p>
for something that is a paragraph by nature? (Or it isn't? Please explain the rationale to get rid of it, and the implications.)
(N.B. It does seem similar to https://github.com/jgm/djot/issues/138#issuecomment-1326702446 -- though on a purely typographic angle, i.e. notwithstanding HTML idiosyncrasies, I don't really understand the key difference between tight and loose lists, except it might have to do with paragraph leading.)
In commonmark and in djot we can have simple ordered list or lists where every item is paragraph. For example:
The empty line in the second list forces each
<li>
to also contain<p>
.We do not have such choice for description lists.
Emits the following HTML:
How can we get rid of that
<p>
?