You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix mdman to not incorrectly strip <p> tags (#16158)
This fixes an issue with how mdman was generating HTML for command-line
options. It was incorrectly stripping the `<p>` tag in the description
of the flag when the description had multiple blocks. The code was
assuming the description was just a single paragraph, but that isn't
correct when there are multiple paragraphs or other block-level elements
like lists. This resulted in broken HTML tags.
The solution here is to stop stripping the `<p>` tags from the
description, and instead to just use CSS to fix the spacing that it
creates. (The specific CSS here will be part of mdbook 0.5.)
This will be required for mdbook 0.5 because it is stricter about having
properly balanced HTML tags.
<ddclass="option-desc">Specifies a URL to use for the given man page. When the <code>{{man name section}}</code> expression is used, the given URL will be inserted as a link. This
81
+
<ddclass="option-desc"><p>Specifies a URL to use for the given man page. When the <code>{{man name section}}</code> expression is used, the given URL will be inserted as a link. This
79
82
may be specified multiple times. If a man page reference does not have a
80
83
matching <code>--man</code> entry, then a relative link to a file named <em>name</em><code>.md</code> will
0 commit comments