From 0b6fe0443d1c5fdebc251880f365c285ac247a6f Mon Sep 17 00:00:00 2001 From: Nikolas Nyby Date: Wed, 12 Jun 2024 14:55:05 -0400 Subject: [PATCH] Remove django-markwhat, introduce markdownify --- pageblocks/templates/pageblocks/imageblock.html | 8 ++++---- pageblocks/templates/pageblocks/imagepullquoteblock.html | 4 ++-- pageblocks/templates/pageblocks/pullquoteblock.html | 4 ++-- pageblocks/templates/pageblocks/simpleimageblock.html | 4 ++-- pageblocks/templates/pageblocks/textblock.html | 4 ++-- setup.py | 6 +++--- test_reqs.txt | 3 +-- 7 files changed, 16 insertions(+), 17 deletions(-) diff --git a/pageblocks/templates/pageblocks/imageblock.html b/pageblocks/templates/pageblocks/imageblock.html index f37b57c..f8850a5 100644 --- a/pageblocks/templates/pageblocks/imageblock.html +++ b/pageblocks/templates/pageblocks/imageblock.html @@ -1,4 +1,4 @@ -{% load markup %} +{% load markdownify %} {% load thumbnail %} {% if block.lightbox %} @@ -17,7 +17,7 @@ @@ -32,7 +32,7 @@ src="{% if img_src %}{{img_src}}{% else %}{% thumbnail block.image 200x200 %}{% endif %}" />
- {{block.caption|markdown}} + {{block.caption|markdownify}}
@@ -41,6 +41,6 @@ {% else %} {{block.alt}}
-{{block.caption|markdown}} +{{block.caption|markdownify}}
{% endif %} diff --git a/pageblocks/templates/pageblocks/imagepullquoteblock.html b/pageblocks/templates/pageblocks/imagepullquoteblock.html index 0be036c..f47dc1f 100644 --- a/pageblocks/templates/pageblocks/imagepullquoteblock.html +++ b/pageblocks/templates/pageblocks/imagepullquoteblock.html @@ -1,11 +1,11 @@ -{% load markup %} +{% load markdownify %} {% load thumbnail %}