Extract pandoc calls out of render
Extract pandoc interaction into seperate module
Set show to an activation event
Use a stream for pandoc input
Create a preview from the active editor, not a file. Enables previewing of unsaved changes
Refresh the preview every second
Only render when the text has changed