[Help] preview html function not work after a quit command
This plugin works well for normal use. But I have a special situation that the markdown file to preview is created by other command.
So I just don't want to see the temporary markdown file, only want to check the preview created by this plugin.
I want to use a vimL function to do this:
function! PreviewJupyterMD()
command that create a md file and load it to a buffer
call mkdp#util#open_preview_page()
exec ":q"
endfunction
But if I add exec ":q" to this function, seems only load the file but not turn it to html.

After I delete exec ":q", all good.

But I do wanna delete the buffer/window by function.
Thanks in advance!
call mkdp#util#open_preview_page() is async, and :q will change the current buffer. I don't know if it's the reason. If it's the reason then need some work to support that.
Seems right, change :q to :buffer 2 get same result.