Compare commits

..

2 Commits

Author SHA1 Message Date
d4c477749c Add unmaintained notice 2018-10-12 09:14:23 +11:00
79c785176f 🐛 check if color scheme is valid before loading 2018-08-04 10:59:39 +10:00
2 changed files with 7 additions and 1 deletions

View File

@ -2,6 +2,12 @@
This is a sublime text **3** plugin that allows you to preview your markdown instantly *in* it! This is a sublime text **3** plugin that allows you to preview your markdown instantly *in* it!
## Unmaintained
I am now using vim. I don't have the energy or the time to maintain this plugin anymore.
If anyone is interested in maintaining it, fork it, and submit a PR to package control to make it point to your fork.
### Dependencies ### Dependencies
**None! There is no dependency!** It uses [markdown2](https://github.com/trentm/python-markdown2) but it's a one file plugin, so it's included in the package. **None! There is no dependency!** It uses [markdown2](https://github.com/trentm/python-markdown2) but it's a one file plugin, so it's included in the package.

View File

@ -127,7 +127,7 @@ def get_style(color_scheme):
if os.path.exists(USER_STYLE_FILE): if os.path.exists(USER_STYLE_FILE):
with open(USER_STYLE_FILE) as fp: with open(USER_STYLE_FILE) as fp:
css += '\n' + fp.read() + '\n' css += '\n' + fp.read() + '\n'
if color_scheme: if color_scheme and color_scheme.endswith('.tmTheme'):
css += pygments_from_theme(get_resource(color_scheme)) css += pygments_from_theme(get_resource(color_scheme))
return ''.join([line.strip() + ' ' for line in css.splitlines()]) return ''.join([line.strip() + ' ' for line in css.splitlines()])