This commit is contained in:
Kenneth Kehl
2025-03-26 14:21:45 -07:00
parent 94b791c869
commit d92e2a7c04

View File

@@ -107,10 +107,11 @@ class EmailRenderer(mistune.HTMLRenderer):
title_attr = f' title="{title}"' if title else "" title_attr = f' title="{title}"' if title else ""
return f'<a style="{LINK_STYLE}" href="{href}"{title_attr}>{display_text}</a>' return f'<a style="{LINK_STYLE}" href="{href}"{title_attr}>{display_text}</a>'
def autolink(self, link, is_email=False): def autolink(self, link, is_email=False): # noqa
return create_sanitised_html_for_url(link, style=LINK_STYLE) return create_sanitised_html_for_url(link, style=LINK_STYLE)
def image(self, src, alt="", title=None, url=None): def image(self, src, alt="", title=None, url=None): # noqa
return "" return ""
def strikethrough(self, text): def strikethrough(self, text):