fix and add markdown copy