Fixes performance issue with markdown editor

This commit fixes the performance issue with the markdown editor on the forum caused by prettifying code blocks on every keystroke.