Fix indentation, markup and links