simple markdown formatting implementation