Given the following Markdown:
- <script>
- some text
some other text
</script>
this implementation returns:
<ul>
<li>
<script>
</li>
<li>some text
some other text</li>
</ul>
</script>
Based on my reading of the script, documented here, the last three lines should be:
some other text
</script></li>
</ul>
As the </script> tag on line 4 is not a valid HTML Block start (type 7 cannot break paragraphs), it should be considered as normal text, only to be further realized as Raw HTML when processing the inline.