Introduce some OOP in markup class

stil have to think about displaying markup preview in metabox and in
particular case such as home, post page and categories, etc.