fixing links and markdown headers