How would you pass a class to markdown?

This is not possible.

Yet, you can make a shortcode which converts markdown within <div /> to HTML.