refactored the editor helper
fixed the css for the md preview
transform md based posts/pages if enabled
refactor utility methods to a new class