refactored the markdown editor toolbar code a bit - made a few style changes