markdown-mode in Emacs is pretty good, but it's not infallible. That said, it's impossible to handle all the dialects simultaneously.