Removes markdown, cleans up structure