upgrade mistune to 3.1.3

This commit is contained in:
Kenneth Kehl
2025-03-26 09:16:07 -07:00
parent 96c033cd6f
commit 0108bcf91f
7 changed files with 407 additions and 632 deletions

View File

@@ -698,7 +698,9 @@ def _get_content_count_error_and_message_for_template(template):
# Check for blocked characters
if contains_blocked_characters(template.content):
warning = f"{s1}{s2}"
return False, Markup(warning) # 🚨 ONLY show the warning, hiding "Will be charged..."
return False, Markup(
warning
) # 🚨 ONLY show the warning, hiding "Will be charged..."
# If message is too long, return the length error
if template.is_message_too_long():