diff --git a/functions.py b/functions.py index c22b79d..e1d1edb 100644 --- a/functions.py +++ b/functions.py @@ -23,7 +23,7 @@ def replace_img_src_base64(html, basepath): path, end = get_content_till(html, '"', start=index + len(tag_start)) if ''.join(path).startswith('data:image/'): continue - if ''.join(path).startswith(tuple(get_settings().get('load_from_internet' + if ''.join(path).startswith(tuple(get_settings().get('load_from_internet ' '_when_starts'))): image = ImageManager.get(''.join(path)) image = image or loading @@ -38,7 +38,7 @@ def replace_img_src_base64(html, basepath): return ''.join(html) def is_markdown_view(view): - return 'markdown' in view.scope_name(0) + return 'markdown' in view.scope_name(0) def to_base64(path=None, content=None): if path is None and content is None: diff --git a/sample.md b/sample.md index f116750..a3c6ab0 100644 --- a/sample.md +++ b/sample.md @@ -1,52 +1,5 @@ -# DuckDuckGo - The Search engine you'll fall in love +dfsdfsdf -Hope you'll enjoy using MarkdownLivePreview! +asdf - -```python -print('Hello world') -if DEBUG: - print('DEBUG_MODE on') -``` - -> Only a fool knows everything. A wise man knows how little he knows - -The only think I know right now is that Boxy Theme's just awesome. - -t - -h - -i - -s - -- - -i - -s - -![Sublime Text Forum](https://forum.sublimetext.com/uploads/st-forum-wide.png) - -- - -a - -- -![Sublime Text Forum](https://forum.sublimetext.com/uploads/st-forum-wide.png) - -![Sublime Text Forum](https://forum.sublimetext.com/uploads/st-forum-wide.png) - -t - -![Sublime Text Forum](https://forum.sublimetext.com/uploads/st-forum-wide.png) - - -e - -![Sublime Text Forum](https://forum.sublimetext.com/uploads/st-forum-wide.png) - -s - -t +asfd