fix links and headers for markdown