diff --git a/md_in_popup.py b/md_in_popup.py index 646e907..ce8eb4b 100644 --- a/md_in_popup.py +++ b/md_in_popup.py @@ -125,7 +125,6 @@ def show_html(md_view, preview): # exception, again, because
 aren't supported by the phantoms
     html = html.replace(' espace;', '.')
-    print(html)
     preview.erase_phantoms('markdown_preview')
     preview.add_phantom('markdown_preview',
                          sublime.Region(-1),
@@ -199,12 +198,3 @@ class MarkdownInPopupCommand(sublime_plugin.EventListener):
                     md_view_settings.erase('markdown_preview_enabled')
                     md_view_settings.erase('markdown_preview_id')
                 sublime.set_timeout_async(callback, 250)
-
-class MarkdownInPopupTestCommand(sublime_plugin.ApplicationCommand):
-
-    def run(self):
-        md(markdown2.markdown("""
-```python
-print("hello world")
-```
-""", extras=['no-code-highlighting', 'fenced-code-blocks']))
diff --git a/sample.md b/sample.md
index d04c548..a2f7430 100644
--- a/sample.md
+++ b/sample.md
@@ -2,27 +2,27 @@
 
 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
 
-### The Zen of Python, by Tim Peters c
+### The Zen of Python, by Tim Peters
 
-> Beautiful is better than ugly.  
-> Explicit is better than implicit.  
-> Simple is better than complex.  
-> Complex is better than complicated.  
-> Flat is better than nested.  
-> Sparse is better than dense.  
-> Readability counts.  
-> Special cases aren't special enough to break the rules.  
-> Although practicality beats purity.  
-> Errors should never pass silently.  
-> Unless explicitly silenced.    
-> In the face of ambiguity, refuse the temptation to guess.  
-> There should be one-- and preferably only one --obvious way to do it.  
-> Although that way may not be obvious at first unless you're Dutch.  
-> Now is better than never.  
-> Although never is often better than *right* now.  
-> If the implementation is hard to explain, it's a bad idea.  
-> If the implementation is easy to explain, it may be a good idea.  
-> Namespaces are one honking great idea -- let's do more of those!  
+> Beautiful is better than ugly.
+> Explicit is better than implicit.
+> Simple is better than complex.
+> Complex is better than complicated.
+> Flat is better than nested.
+> Sparse is better than dense.
+> Readability counts.
+> Special cases aren't special enough to break the rules.
+> Although practicality beats purity.
+> Errors should never pass silently.
+> Unless explicitly silenced.
+> In the face of ambiguity, refuse the temptation to guess.
+> There should be one-- and preferably only one --obvious way to do it.
+> Although that way may not be obvious at first unless you're Dutch.
+> Now is better than never.
+> Although never is often better than *right* now.
+> If the implementation is hard to explain, it's a bad idea.
+> If the implementation is easy to explain, it may be a good idea.
+> Namespaces are one honking great idea -- let's do more of those!
 
 > Code tells you how, comments tells you why
 
@@ -34,10 +34,9 @@ print('This is some pretty')
 print('cool stuff')
 if test:
 	print('hello world')
-	
 ```
 
-This is some `code` 
+This is some `code`
 
 - a
 - list
@@ -45,16 +44,3 @@ This is some `code`
 1. and
 2. other
 3. list
-
-
-this
-
-is
-
-a
-
-lot
-
-of
-
-paragraph
\ No newline at end of file