-
My code from the first post works on CommonMark tester.
It is correctly idented (but not highlighted because as I see CommonMark does not highlight code at all).
So there is a clear difference: Discourse breaks my case №2 (3 back-ticks syntax) and CommonMark tester correctly renders it. -
GitHub code from my post 3 does not work on CommonMark tester.