improved markdown editor support