Implement markdown preview functinality, #19