From 41c28e2b24ec591c5849241ac3336dae7c666dca Mon Sep 17 00:00:00 2001 From: Mathieu PATUREL Date: Sat, 29 Jul 2017 14:34:57 +1000 Subject: [PATCH] :sparkles: use option 'strike' although no-sublime-support --- MLPApi.py | 3 ++- example.md | 2 +- test.md | 4 ++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/MLPApi.py b/MLPApi.py index 884324f..d5ab3be 100644 --- a/MLPApi.py +++ b/MLPApi.py @@ -42,7 +42,7 @@ def markdown2html(md, basepath, color_scheme): # the option no-code-highlighting does not exists in the official version of markdown2 for now # I personaly edited the file (markdown2.py:1743) - html += md2.markdown(md, extras=['fenced-code-blocks', 'tables']) + html += md2.markdown(md, extras=['fenced-code-blocks', 'tables', 'strike']) # tables aren't supported by the Phantoms # This function transforms them into aligned ASCII tables and displays them in a
 block
@@ -68,6 +68,7 @@ def markdown2html(md, basepath, color_scheme):
 
     # BeautifulSoup uses the 
but the sublime phantoms do not support them... html = html.replace('
', '
').replace('
', '
') + sublime.set_clipboard(html) return html diff --git a/example.md b/example.md index d6fb04d..8b3e57c 100644 --- a/example.md +++ b/example.md @@ -10,7 +10,7 @@ hope: You'll enjoy using it! And `` -Some `inline code` with *italic* and **bold** text. +Some `inline code` with *italic*, **bold** text, and ~~strike through~~. ```python import this diff --git a/test.md b/test.md index 16e7436..eb42173 100644 --- a/test.md +++ b/test.md @@ -10,3 +10,7 @@ else: ``` ![img](docs/imgs/syntax-specific-settings.png) + +
    +
  1. test
  2. +
\ No newline at end of file