From ee6eac721b477948f4d10ba42570483c855e15dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Sat, 28 Jan 2023 21:16:23 +0100 Subject: [PATCH] Remove __name__ == "__main__" in markdown.py --- discord_rss_bot/markdown.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/discord_rss_bot/markdown.py b/discord_rss_bot/markdown.py index 01cfeef..88ed723 100644 --- a/discord_rss_bot/markdown.py +++ b/discord_rss_bot/markdown.py @@ -55,14 +55,3 @@ def convert_html_to_md(html: str) -> str: # Remove all leading and trailing whitespace soup_text: str = soup.text return soup_text.strip() - - -# Test the function -if __name__ == "__main__": - html: str = """ -

bold italic link code strikethrough

-
blockquote
-
pre code
- strong - """ - print(convert_html_to_md(html))