superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: Explicit set markdown version to >= 3.0 (#5959)
Date Thu, 27 Sep 2018 06:48:18 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 458b2b5  Explicit set markdown version to >= 3.0 (#5959)
458b2b5 is described below

commit 458b2b5970ee06358a64ba42c8683827cc033e9a
Author: Mạnh Tài <vo@manhtai.com>
AuthorDate: Thu Sep 27 13:48:13 2018 +0700

    Explicit set markdown version to >= 3.0 (#5959)
    
    * Explicit set markdown version to >= 3.0
    
    * Pinning
---
 requirements.txt  | 3 +--
 setup.py          | 2 +-
 superset/utils.py | 2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/requirements.txt b/requirements.txt
index 7216995..f1a3cd7 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -18,7 +18,7 @@ gunicorn==19.8.0
 humanize==0.5.1
 idna==2.6
 isodate==0.6.0
-markdown==2.6.11
+markdown==3.0
 pandas==0.23.1
 parsedatetime==2.0.0
 pathlib2==2.3.0
@@ -40,4 +40,3 @@ thrift-sasl==0.3.0
 unicodecsv==0.14.1
 unidecode==1.0.22
 contextlib2==0.5.5
-
diff --git a/setup.py b/setup.py
index 373ed7e..c5dba15 100644
--- a/setup.py
+++ b/setup.py
@@ -75,7 +75,7 @@ setup(
         'humanize',
         'idna',
         'isodate',
-        'markdown<3.0.0',
+        'markdown>=3.0',
         'pandas>=0.18.0',
         'parsedatetime',
         'pathlib2',
diff --git a/superset/utils.py b/superset/utils.py
index aa58007..6362712 100644
--- a/superset/utils.py
+++ b/superset/utils.py
@@ -420,7 +420,7 @@ def markdown(s, markup_wrap=False):
                           'li', 'dd', 'dt', 'img', 'a']
     safe_markdown_attrs = {'img': ['src', 'alt', 'title'],
                            'a': ['href', 'alt', 'title']}
-    s = md.markdown(s or '', [
+    s = md.markdown(s or '', extensions=[
         'markdown.extensions.tables',
         'markdown.extensions.fenced_code',
         'markdown.extensions.codehilite',


Mime
View raw message