SGML has many optional features to allow markup minimization, such as optional or implied start and end tags and SHORTREF for simpler aliases of tags. Is it thus possible to write a DTD that a perfect SGML implementation, which has always been a rare to non-existent thing, could use to successfully parse arbitrary markdown documents?
There are differences among existing markdown parsers, which Commonmark tries to standardize away, so there is some leeway in border cases for an SGML-based parser.