markdown preview with a simple template