Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 79c785176f | |||
| 82ad98085f |
@ -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
|
||||
|
||||
|
||||
@ -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()])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user