It's intended to be a markdown with code. So it has nesting and scopes and code/math modes in with the markdown.
Idk, I find it mind-bending but quite readable.