Wait, how would that even work? Do you want something like SIXL support but for markdown? Encode your markdown doc in an unholy escape sequence and throw it at the terminal?
https://github.com/alacritty/alacritty/blob/master/extra/ala...
Allowing for different sized headers and what not.