<!not_tag is is not escape the first bracket?

http://talk.commonmark.org/t/why-allow-incomplete-html-block-tags/1006

They can be multiline and so on.

That’s not markdown task to guarantee correct html output. So, no needs to overcomplicate things.