highlighter.py has a tag pattern with [\w\W]* for tag_contents. This is greedy and matches across closing/opening tags.
For input like content1content2, the regex matches a single tag where tag_contents is ">content1content2</b" instead of matching two separate tags. The tag highlighting ends up wrong.
Probably needs a non-greedy [\w\W]*? or a negated character class.
highlighter.py has a tag pattern with [\w\W]* for tag_contents. This is greedy and matches across closing/opening tags.
For input like content1content2, the regex matches a single tag where tag_contents is ">content1content2</b" instead of matching two separate tags. The tag highlighting ends up wrong.
Probably needs a non-greedy [\w\W]*? or a negated character class.