Markdown: minor fixes

* fix some doc and dead code
* fix truncated fence blocks
* make sublcasses easier to implement