add markdown view helper and fix encoding and End of line character