diff --git a/MLPApi.py b/MLPApi.py index 22ca211..970212f 100644 --- a/MLPApi.py +++ b/MLPApi.py @@ -68,8 +68,6 @@ def markdown2html(md, basepath, color_scheme): # BeautifulSoup uses the
but the sublime phantoms do not support them... html = html.replace('
', '
').replace('
', '
') - sublime.set_clipboard(html) # print('hello') - return html def show_html(md_view, preview): diff --git a/functions.py b/functions.py index 2945f19..97e4308 100644 --- a/functions.py +++ b/functions.py @@ -124,10 +124,10 @@ def pre_with_br(html): def get_style(color_scheme): - css = ''.join([line.strip() + ' ' for line in DEFAULT_STYLE.splitlines()]) + css = DEFAULT_STYLE if os.path.exists(USER_STYLE_FILE): with open(USER_STYLE_FILE) as fp: css += '\n' + fp.read() + '\n' if color_scheme: css += pygments_from_theme(color_scheme) - return css + return ''.join([line.strip() + ' ' for line in css.splitlines()])