It didn't look pretty when images where larger than the viewport, and it "broke" word wrap (because it stretched the phantom, and hence lines wrapped further, see #34) Sublime Text's minihtml only supports width and height attributes on img tags, therefore, we have to determine the aspect ratio of the images ourselves if we want to set a maxsize (so that we can set the height). We use a hacky function copy pasted from stackoverflow to determine the size of common format of images using std lib python.
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
If you know what feature you want to implement, or what bug you wanna fix, then
go ahead and hack! But if you wanna contribute just to say thanks, and don't
really know what you could be working on, then there are a bunch of FIXMEs
in MarkdownLivePreview.py and markdown2html.py (GitHub only shows the top
2 results if you try to search using their interface 🙁).
Hack it!
- 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!
FIXME: add a git hook to format using black (can the git hook be added on github?)
v6.0.2
Latest
Languages
Python
99.9%
CSS
0.1%