Function to preview markdown added