adding check for markdown-preview being active

if not active just open the markdown file without rendering