Fixed most blockFormat scenarios that would result in broken code, eg. replacing li with h2.
Merge pull request #1219 from cprerovsky/howling-mad-uiproto

Fixed most blockFormat scenarios that would result in broken code
Refactoring links
Update compilation/exporting