Fixes for esc in editing mode

- if you insert a new markdown item, then hit escape (without saving, essentially) remove it from items and don't do anything to raw