Create function to preview html which pandoc create on save.