Sublime text 3's markdown real-time preview plug-in (markdownPreview does not take effect)

Here are two main plugins:

1. OmniMarkupPreviwer: You can directly open the real-time preview of the browser, which is very convenient. The only thing that makes me feel uncomfortable is that this plug-in starts a web server in the background. As long as you open sublime, the server is open, so when you preview the markdown file, you also preview it through the address http://127.0.0.1:51004/view/xx.

 

2. markdownPreview: This should be used a lot, but I can’t use it after installing it. I went to the official website today to check it out. This preview actually uses a built-in python plugin or a third-party pymdown-extensions to complete the markdown conversion. I suspect that the inability to preview may be because the built-in python plugin can’t run. So according to the prompt, manually install it in the terminal: pip3 install pymdown-extensions (or pip install pymdown-extensions), install it In the future, open the preview of markdownPreview in sublime, select markdown, and you can open it directly in the browser.

 

The markdownPreview plug-in will have three options when previewing: github, gitlab, markdown. The first two are to send your md file to the server of github and gitlab through https for rendering, and the last one is to render it through a local python script. If you don’t want to use github and gitlab, just add it to the plugin configuration:    

    "enabled_parsers": ["markdown"]

The default configuration is: "enabled_parsers": ["markdown", "github", "gitlab"] , we just remove the latter two.

 

Guess you like

Origin blog.csdn.net/bokix/article/details/107108433