diff --git a/quiz/templatetags/quiz_extras.py b/quiz/templatetags/quiz_extras.py index 3f2eaa0..4b637ab 100644 --- a/quiz/templatetags/quiz_extras.py +++ b/quiz/templatetags/quiz_extras.py @@ -32,7 +32,7 @@ def standard_ref(text): def to_html(text, autoescape=None): return mark_safe( standard_ref( - markdown.markdown(text, extensions=['nl2br']))) + markdown.markdown(text, extensions=['nl2br', 'pymdownx.superfences']))) @register.filter() diff --git a/requirements.in b/requirements.in index 7da8dd6..4fb8a02 100644 --- a/requirements.in +++ b/requirements.in @@ -1,5 +1,6 @@ Django>=4.1,<5 Markdown +pymdown-extensions mock parameterized tweepy diff --git a/requirements.txt b/requirements.txt index 5f34246..07cb265 100644 --- a/requirements.txt +++ b/requirements.txt @@ -27,7 +27,9 @@ idna==3.7 lxml==5.2.2 # via splinter markdown==3.6 - # via -r requirements.in + # via + # -r requirements.in + # pymdown-extensions mock==5.1.0 # via -r requirements.in oauthlib==3.2.2 @@ -42,10 +44,14 @@ pip-tools==7.4.1 # via -r requirements.in pycodestyle==2.12.0 # via autopep8 +pymdown-extensions==10.9 + # via -r requirements.in pyproject-hooks==1.1.0 # via # build # pip-tools +pyyaml==6.0.1 + # via pymdown-extensions requests==2.32.3 # via # requests-oauthlib @@ -54,7 +60,7 @@ requests-oauthlib==1.3.1 # via tweepy splinter[django]==0.21.0 # via -r requirements.in -sqlparse==0.5.0 +sqlparse==0.5.1 # via django tweepy==4.14.0 # via -r requirements.in