Skip to content

Commit adcdbb9

Browse files
committed
Fix list rendering
1 parent 29d86f7 commit adcdbb9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

mxtoai/scripts/report_formatter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,9 @@ def _to_html(self, markdown_content: str, theme: str = "default") -> str:
231231
from markdown.extensions.tables import TableExtension
232232
from markdown.extensions.toc import TocExtension
233233

234+
# Pre-process to ensure lists following non-empty lines have a preceding blank line
235+
markdown_content = re.sub(r'([^\n])\n(\s*(?:[-*+]|\d+\.)[ \t])', r'\1\n\n\2', markdown_content)
236+
234237
# Configure extensions with specific settings
235238
extensions = [
236239
TableExtension(), # Support for tables

mxtoai/scripts/templates/email_template.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@
118118
}
119119
120120
li p {
121-
margin: 0.5rem 0;
122-
display: inline-block;
121+
margin: 0;
123122
}
124123
125124
li > ul,

0 commit comments

Comments
 (0)