Closed snikitin-qtl closed 4 years ago
While you are correct that <li>a</li>
on GitHub renders as a list item,
<li>
that is not in an <ol>
or <ul>
?<li>
w/o <ol>
/ <ul>
ancestor, which I based this schema on 🤔Well,
<ul>
or <ol>
. This case is a true story based on real events. I believe in this case - consistency is the goal.
<tbody>a</tbody>
<tfoot>b</tfoot>
<thead>c</thead>
<td>d</td>
<th>e</th>
<tr>f</tr>
<li>g</li>
<h7>h</h7>
<h8>i</h8>
<p>j</p>
Yields:
a b cj
I also found that h7 and h8 are no longer supported. Are you interested in a PR that fixes li
, and maybe also remove h7 and h8 too?
Sure, let me do that.
Hello, we have found an issue in GitHub schema.
https://github.com/syntax-tree/hast-util-sanitize/blob/71283f0f639af239dfc4931dd2ca4d89c9541935/lib/github.json#L11-L14
It sanitizes the
li
tags withoutul
orol
ancestors. Github is allowing that. Should I make a PR to fix that? or there is a rationale to keep it this way?