Dear maintainer
I've just uploaded 1.3.12-7.1as an NMU of hyperkitty with the attached
changes to fix #1149746 and hopefully solve a significant number of
autoremovals (over 2400 packages to be autoremoved because mistune
cannot migrate due to this bug).
regards
Stuart
--
Stuart Prescott http://www.nanonanonano.net/ [email protected]
Debian Developer http://www.debian.org/ [email protected]
GPG fingerprint 90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7
diff -Nru hyperkitty-1.3.12/debian/changelog hyperkitty-1.3.12/debian/changelog
--- hyperkitty-1.3.12/debian/changelog 2026-08-09 07:28:40.000000000 +1000
+++ hyperkitty-1.3.12/debian/changelog 2026-11-15 15:51:16.000000000 +1100
@@ -1,3 +1,11 @@
+hyperkitty (1.3.12-7.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Add upstream patch for compatibility with mistune 3.3, with thanks to
+ Michael R. Crusoe for preparing it (Closes: #1149746).
+
+ -- Stuart Prescott <[email protected]> Sun, 15 Nov 2026 15:51:16 +1100
+
hyperkitty (1.3.12-7) unstable; urgency=medium
* Add patch for another case where SOCIALACCOUNT_ONY needs guard.
diff -Nru
hyperkitty-1.3.12/debian/patches/0011-mistune-3.3-compatibility-fix.patch
hyperkitty-1.3.12/debian/patches/0011-mistune-3.3-compatibility-fix.patch
--- hyperkitty-1.3.12/debian/patches/0011-mistune-3.3-compatibility-fix.patch
1970-01-01 10:00:00.000000000 +1000
+++ hyperkitty-1.3.12/debian/patches/0011-mistune-3.3-compatibility-fix.patch
2026-11-15 15:51:16.000000000 +1100
@@ -0,0 +1,63 @@
+From: Mark Sapiro <[email protected]>
+Date: Fri, 26 Jun 2026 13:36:18 -0700
+Subject: mistune 3.3 compatibility fix.
+Origin: upstream,
https://gitlab.com/mailman/hyperkitty/-/commit/caa6d1c8d0ee1b3579a7884047bd90e7de8ecc7b
+
+---
+ hyperkitty/lib/renderer.py | 7 +++++--
+ hyperkitty/tests/test_templatetags.py | 5 ++---
+ 2 files changed, 7 insertions(+), 5 deletions(-)
+
+diff --git a/hyperkitty/lib/renderer.py b/hyperkitty/lib/renderer.py
+index dc81a1a..ad6858f 100644
+--- a/hyperkitty/lib/renderer.py
++++ b/hyperkitty/lib/renderer.py
+@@ -27,11 +27,13 @@ class MyRenderer(mistune.HTMLRenderer):
+ f'<div class="quoted-switch"><a href="#">...</a></div>'
+ f'<blockquote class="blockquote quoted-text">{text}</blockquote>')
+
+- def emphasis(self, text, marker):
++ def emphasis(self, text, marker='*'):
++ # mistune >=3.3 doesn't include the marker in the call.
+ """Emphasis with marker included."""
+ return super().emphasis(marker + text + marker)
+
+- def strong(self, text, marker):
++ def strong(self, text, marker='**'):
++ # mistune >=3.3 doesn't include the marker in the call.
+ """Strong with marker included."""
+ return super().strong(marker + text + marker)
+
+@@ -39,6 +41,7 @@ class MyRenderer(mistune.HTMLRenderer):
+ # We had to override this because for some reason, text inside
emphasis
+ # and strong will receive the attrs of parents too, like "marker" in
+ # our case. We don't really need to do anything with it.
++ # Although maybe this is fixed in mistune >=3.3.
+ return text
+
+ def _md_style_img(self, src, title, alt):
+diff --git a/hyperkitty/tests/test_templatetags.py
b/hyperkitty/tests/test_templatetags.py
+index 063e6a7..4966177 100644
+--- a/hyperkitty/tests/test_templatetags.py
++++ b/hyperkitty/tests/test_templatetags.py
+@@ -233,10 +233,9 @@ Date: 6/26/23 16:23 (GMT-05:00)
+ To: [email protected]
+ Subject: Testing if the quoted reply works with Outlook style.
+
+-This is the original text *with* some __markup__.
++This is the original text *with* some **markup**.
+ """
+ result = markdown_renderer(contents)
+- print(result)
+ self.assertEqual(
+ result.strip(),
+ """<p>This is the replied text.</p>
+@@ -246,7 +245,7 @@ From: A person <person(a)example.com>
+ Date: 6/26/23 16:23 (GMT-05:00)
+ To: [email protected]
+ Subject: Testing if the quoted reply works with Outlook style.
+-This is the original text <em>*with*</em> some
<strong>__markup__</strong>.</p>
++This is the original text <em>*with*</em> some
<strong>**markup**</strong>.</p>
+ </blockquote>""") # noqa: E501
+
+ def test_backslash(self):
diff -Nru hyperkitty-1.3.12/debian/patches/series
hyperkitty-1.3.12/debian/patches/series
--- hyperkitty-1.3.12/debian/patches/series 2026-08-08 09:34:06.000000000
+1000
+++ hyperkitty-1.3.12/debian/patches/series 2026-11-15 15:51:16.000000000
+1100
@@ -8,3 +8,4 @@
0008-PATCH-fix-tests-Do-not-depend-on-Django-private-test.patch
0009-Guard-account_signup-navbar-links-when-SOCIALACCOUNT_ONLY.patch
0010_Guard-Link-another-address-link-when-SOCIALACCOUNT_ONLY.patch
+0011-mistune-3.3-compatibility-fix.patch