Using kramdown to mark up a digitized book, I've been converting the OCR-generated asterisks to underscores to improve the code's readability.
The :smart_quotes substitution algorithm breaks around text with underscores. For example:
"_Hurrah!_"
'__Absolutely__.'
renders both lines with closing quotes at both ends of the word. Asterisk markup works correctly, as does explicit html markup.