remove print :ashamed:

This commit is contained in:
math2001
2016-11-26 14:45:06 +11:00
parent 1113fda8a1
commit bf4b35ae63
2 changed files with 21 additions and 45 deletions

View File

@ -125,7 +125,6 @@ def show_html(md_view, preview):
# exception, again, because <pre> aren't supported by the phantoms
html = html.replace('&nbspespace;', '<i class="space">.</i>')
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']))

View File

@ -2,7 +2,7 @@
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.
@ -34,7 +34,6 @@ print('This is some pretty')
print('cool stuff')
if test:
print('hello world')
```
This is some `code`
@ -45,16 +44,3 @@ This is some `code`
1. and
2. other
3. list
this
is
a
lot
of
paragraph