Compare commits

..

3 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
82ad98085f 🐛 don't copy to html to clipboard. Fix #36 2017-09-29 07:12:55 +10:00
3 changed files with 7 additions and 2 deletions

View File

@ -68,7 +68,6 @@ def markdown2html(md, basepath, color_scheme):
# BeautifulSoup uses the <br/> but the sublime phantoms do not support them...
html = html.replace('<br/>', '<br />').replace('<hr/>', '<hr />')
sublime.set_clipboard(html)
return html

View File

@ -2,6 +2,12 @@
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
**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):
with open(USER_STYLE_FILE) as fp:
css += '\n' + fp.read() + '\n'
if color_scheme:
if color_scheme and color_scheme.endswith('.tmTheme'):
css += pygments_from_theme(get_resource(color_scheme))
return ''.join([line.strip() + ' ' for line in css.splitlines()])