So, full disclosure, I did find a bug in my parser, where I wasn’t handling this case properly:
``` - some text some other text ```
and I was starting a list. Fixed that, but along the way, I have hit an interesting issue:
- <script> - some text some other text </script>
So, based on that input, the Dingus for the CommonMark reference implementation gives:
<ul> <li> <script> </li> <li>some text some other text</li> </ul> </script>
and my implementation currently gives:
<ul> <li> <script> </li> <li>some text some other text </script></li> </ul>
Now, granted, the difference is small, but as I am trying to be on point with the reference definition, any change is important to me. In this case, my implementation gets to the last line and considers that line at first to be a HTML Type 7 block. But because Type 7 blocks cannot continue a paragraph and one is already in progress, it makes itself ineligible, effectively becoming normal text. Then, during the inline phase of my processing, it becomes a Raw HTML block, but inside of the paragraph.
Looking at the output for the reference implementation, my guess is that something is happening that evaluates to a non-paragraph state, causing the list to be terminated, and then for that same text (now that the paragraph is closed) to become a Type 7 HTML block. But I am not sure.
Can I get some assistance on figuring this out?