Optimized code.
editor: Fix Markdown highlighting method.