add directive markdown editor