Files
John MacFarlane 29fa97ab96 HTML reader: better handle non-li elements in ul and ol.
For example, a `p` after a closed `li` will be incorporated into
the previous `li`. This mirrors what browsers do with this
invalid HTML.

Closes #9809.
2024-05-28 08:44:46 -07:00

230 B

% pandoc -f html -t native
<ul>
  <li>Bullet point.</li>
  <p>Nested line.</p>
</ul>
^D
[ BulletList
    [ [ Para [ Str "Bullet" , Space , Str "point." ]
      , Para [ Str "Nested" , Space , Str "line." ]
      ]
    ]
]