Factor in the Markdown default in one more location.

The previous change to factor in Markdown defaults didn't update one
critical function. This function determines if Markdown should be used
when determining CSS classes in a couple locations, and when determining
if plain text should be escaped for Markdown.

Reviewed at https://reviews.reviewboard.org/r/6523/