Replace tags with markdown