Added markdown hooks and some other editor tweaks