Mathieu PATUREL cf68b2c202 Set the maxwidth for images (fix #48)
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.
2019-11-16 14:56:03 +11:00
2019-11-16 09:57:45 +11:00
2017-02-05 08:07:25 +11:00
2019-11-16 09:04:14 +11:00
2017-02-05 08:07:25 +11:00
2019-11-16 10:16:12 +11:00

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!

  1. Fork this repo
  2. Make your own branch (the name of the branch should be the feature you are implementing eg. improve-tables, fix-crash-on-multiple-preview
  3. All your code should be formated by black.
  4. Send a PR!

FIXME: add a git hook to format using black (can the git hook be added on github?)

Description
No description provided
Readme MIT 34 MiB
v6.0.2 Latest
2025-04-24 14:42:21 +00:00
Languages
Python 99.9%
CSS 0.1%