Generalize markdown preview.