Skip to content

Commit

Permalink
squash 169
Browse files Browse the repository at this point in the history
  • Loading branch information
kalbfled committed Dec 2, 2024
1 parent 3232283 commit 4c2b8cd
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 637 deletions.
8 changes: 0 additions & 8 deletions notifications_utils/formatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,11 +744,3 @@ def tok_text(self):

def output_text(self):
return self.renderer.paragraph(self.tok_text(), self._is_inside_list)


notify_email_markdown = NotifyEmailMarkdown(
renderer=NotifyEmailMarkdownRenderer(),
block=NotifyEmailBlockLexer,
hard_wrap=True,
use_xhtml=False,
)
4 changes: 1 addition & 3 deletions notifications_utils/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
nl2li,
normalise_newlines,
normalise_whitespace,
notify_email_markdown,
remove_empty_lines,
remove_smart_quotes_from_email_addresses,
remove_whitespace_before_punctuation,
Expand Down Expand Up @@ -698,8 +697,6 @@ def get_html_email_body(
).then(
# before converting to markdown, strip out the "(())" for placeholders (preview mode or test emails)
strip_parentheses_in_link_placeholders
).then(
notify_email_markdown
).then(
# after converting to html link, replace !!foo## with ((foo))
replace_symbols_with_placeholder_parens
Expand All @@ -708,6 +705,7 @@ def get_html_email_body(
).then(
insert_action_link
)
# TODO - I deleted the call to notify_email_markdown


def do_nice_typography(value):
Expand Down
Loading

0 comments on commit 4c2b8cd

Please sign in to comment.