Skip to content

Commit a37338b

Browse files
committed
Fix multiline HTML comments not being stripped (fix #6, again)
1 parent adafaed commit a37338b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot/src/ghutils/utils/markdown.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def render_inline_html(self, element: InlineHTML) -> str:
1919
return _strip_html_comments(super().render_inline_html(element))
2020

2121

22-
_HTML_COMMENT_PATTERN = re.compile(r"<!--.*?-->")
22+
_HTML_COMMENT_PATTERN = re.compile(r"<!--.*?-->", flags=re.DOTALL)
2323

2424

2525
def _strip_html_comments(text: str) -> str:

0 commit comments

Comments
 (0)