Fixes markdown processing bugs.