formatting headers and code for markdown