The aim is to replace every \n in a <pre> with a <br /> because st doesn't support pre. However, ST doesn't support <br/> for some reason, only <br> or <br />. We use to add some <br>s, but BeautifulSoup automatically adds a <br/> when it sees a <br> (close the tag), which causes the clipping of the rest of the file by ST. But if we replace every \n with a <br />, BeautifulSoup automatically replaces it with <br/> (= ST bug) So, we do exactly that, except that at the very end, when markdown2html returns, we replace every <br/> with a <br />
MarkdownLivePreview
A simple plugin to preview your markdown as you type right in Sublime Text. No dependencies!
How to install
It's available on package control!
How to contribute
- Fork this repo
- Make your own branch (the name of the branch should be the feature you are
implementing eg.
improve-tables,fix-crash-on-multiple-preview - All your code should be formated by black.
- Send a PR!
v6.0.2
Latest
Languages
Python
99.9%
CSS
0.1%