JetBrains / markdown

Markdown parser written in kotlin
Apache License 2.0
682 stars 75 forks source link

Incorrect HtmlBlockMarkerBlock token detection #131

Open tewnn opened 11 months ago

tewnn commented 11 months ago
  1. Input <my_self_closing_tag/> or <my_self_closing_tag/> text <my_self_closing_tag/> is parsing like a single HTML_BLOCK_CONTENT.
  2. Input A <my_self_closing_tag/> is parsing as TEXT(A), WHITE_SPACE, HTML_TAG(<my_self_closing_tag/>).
  3. Input A <my_self_closing_tag/> text <my_self_closing_tag/> is parsing as TEXT(A), WHITE_SPACE, HTML_TAG(<my_self_closing_tag/>), WHITE_SPACE, TEXT(text), WHITE_SPACE, HTML_TAG(<my_self_closing_tag/>).

The first inputs should work the same way as samples 2 and 3.