adjustments for markdown engine's bad html parsing