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']))
|
|
||||||
|
|||||||
16
sample.md
16
sample.md
@ -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.
|
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.
|
||||||
@ -34,7 +34,6 @@ 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`
|
||||||
@ -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