remove print :ashamed:
This commit is contained in:
@ -125,7 +125,6 @@ def show_html(md_view, preview):
|
|||||||
|
|
||||||
# exception, again, because <pre> aren't supported by the phantoms
|
# exception, again, because <pre> aren't supported by the phantoms
|
||||||
html = html.replace(' espace;', '<i class="space">.</i>')
|
html = html.replace(' espace;', '<i class="space">.</i>')
|
||||||
print(html)
|
|
||||||
preview.erase_phantoms('markdown_preview')
|
preview.erase_phantoms('markdown_preview')
|
||||||
preview.add_phantom('markdown_preview',
|
preview.add_phantom('markdown_preview',
|
||||||
sublime.Region(-1),
|
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_enabled')
|
||||||
md_view_settings.erase('markdown_preview_id')
|
md_view_settings.erase('markdown_preview_id')
|
||||||
sublime.set_timeout_async(callback, 250)
|
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']))
|
|
||||||
|
|||||||
56
sample.md
56
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.
|
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.
|
> Beautiful is better than ugly.
|
||||||
> Explicit is better than implicit.
|
> Explicit is better than implicit.
|
||||||
> Simple is better than complex.
|
> Simple is better than complex.
|
||||||
> Complex is better than complicated.
|
> Complex is better than complicated.
|
||||||
> Flat is better than nested.
|
> Flat is better than nested.
|
||||||
> Sparse is better than dense.
|
> Sparse is better than dense.
|
||||||
> Readability counts.
|
> Readability counts.
|
||||||
> Special cases aren't special enough to break the rules.
|
> Special cases aren't special enough to break the rules.
|
||||||
> Although practicality beats purity.
|
> Although practicality beats purity.
|
||||||
> Errors should never pass silently.
|
> Errors should never pass silently.
|
||||||
> Unless explicitly silenced.
|
> Unless explicitly silenced.
|
||||||
> In the face of ambiguity, refuse the temptation to guess.
|
> In the face of ambiguity, refuse the temptation to guess.
|
||||||
> There should be one-- and preferably only one --obvious way to do it.
|
> 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.
|
> Although that way may not be obvious at first unless you're Dutch.
|
||||||
> Now is better than never.
|
> Now is better than never.
|
||||||
> Although never is often better than *right* now.
|
> Although never is often better than *right* now.
|
||||||
> If the implementation is hard to explain, it's a bad idea.
|
> 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.
|
> 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!
|
> Namespaces are one honking great idea -- let's do more of those!
|
||||||
|
|
||||||
> Code tells you how, comments tells you why
|
> Code tells you how, comments tells you why
|
||||||
|
|
||||||
@ -34,10 +34,9 @@ print('This is some pretty')
|
|||||||
print('cool stuff')
|
print('cool stuff')
|
||||||
if test:
|
if test:
|
||||||
print('hello world')
|
print('hello world')
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
This is some `code`
|
This is some `code`
|
||||||
|
|
||||||
- a
|
- a
|
||||||
- list
|
- list
|
||||||
@ -45,16 +44,3 @@ This is some `code`
|
|||||||
1. and
|
1. and
|
||||||
2. other
|
2. other
|
||||||
3. list
|
3. list
|
||||||
|
|
||||||
|
|
||||||
this
|
|
||||||
|
|
||||||
is
|
|
||||||
|
|
||||||
a
|
|
||||||
|
|
||||||
lot
|
|
||||||
|
|
||||||
of
|
|
||||||
|
|
||||||
paragraph
|
|
||||||
Reference in New Issue
Block a user