diff --git a/MLPApi.py b/MLPApi.py index 258750d..4d75115 100644 --- a/MLPApi.py +++ b/MLPApi.py @@ -69,7 +69,6 @@ def markdown2html(md, basepath): # exception, again, because
aren't supported by the phantoms
html = html.replace(' espace;', '.')
html = replace_img_src_base64(html, basepath=os.path.dirname(basepath))
- sublime.set_clipboard(html)
return html
def show_html(md_view, preview):
diff --git a/functions.py b/functions.py
index 82cc08a..b5f28f2 100644
--- a/functions.py
+++ b/functions.py
@@ -90,7 +90,6 @@ def get_settings():
def pre_with_br(html):
"""Because the phantoms of sublime text does not support blocks
this function replaces every \n with a
in a """
- # Need to use bs4
soup = BeautifulSoup(html)
for pre in soup.find_all('pre'):
code = pre.find('code')
diff --git a/lib/pre_tables.py b/lib/pre_tables.py
index 8c7373a..381455c 100644
--- a/lib/pre_tables.py
+++ b/lib/pre_tables.py
@@ -1,5 +1,9 @@
# -*- encoding: utf-8 -*-
+"""
+'pre_tables' transform *html* tables into markdown tables, and put them in some tags
+"""
+
from bs4 import BeautifulSoup
def python_table(s_table):