Mathieu PATUREL 192f61bf0c improve caching of images
First, we used two caches. Turns out that lru_cache wasn't needed, the
dict works perfectly fine on it's own.

Second, we now also cache local images, so that we don't have to read
them off the filesystem and convert them to base64 on every keystroke

Maybe there should be a maximum size on that cache dict, but I doubt
anyone would actually run into any trouble this cache taking too much
ram.
2019-11-16 10:16:12 +11:00
2019-11-16 09:57:45 +11:00
2017-02-05 08:07:25 +11:00
2019-11-16 09:57:45 +11:00
2019-11-16 09:04:14 +11:00
2019-11-16 10:16:12 +11:00
2017-02-05 08:07:25 +11:00
2019-11-16 10:16:12 +11:00
2019-11-16 09:57:45 +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%