implement previews for markdown