Fixed code mirror bug for markdown cells