Compare commits

..

2 Commits

Author SHA1 Message Date
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
2 changed files with 1 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

@ -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()])