iamcco / iamcco/markdown-preview.nvim

[Help] preview html function not work after a quit command

Open
#229 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8k
Forks
411
PR merge metrics
No merged PRs in 30d

Description

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.

![image](https://user-images.githubusercontent.com/9500049/92505010-07b9e300-f236-11ea-9584-6979127b6528.png)

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

![image](https://user-images.githubusercontent.com/9500049/92505236-60897b80-f236-11ea-85eb-c0b2ae05c849.png)

But I do wanna delete the buffer/window by function.

Thanks in advance!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.