Skip to content

Commit ae3eb69

Browse files
committed
Fix alert block quote
1 parent bf20b1b commit ae3eb69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

confluence_markdown_exporter/confluence.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,8 @@ def convert_alert(self, el: BeautifulSoup, text: str, parent_tags: list[str]) ->
515515

516516
alert_type = alert_type_map.get(str(el["data-macro-name"]), "NOTE")
517517

518-
return f"\n> [!{alert_type}]\n> {text.strip()}\n\n"
518+
blockquote = super().convert_blockquote(el, text, parent_tags)
519+
return f"\n> [!{alert_type}]{blockquote}"
519520

520521
def convert_div(self, el: BeautifulSoup, text: str, parent_tags: list[str]) -> str: # noqa: PLR0911
521522
# Handle Confluence macros

0 commit comments

Comments
 (0)