From bcf88585de81aaec48a3908813a8ebf1537fbd17 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Mon, 28 Oct 2024 05:47:53 -0700 Subject: [PATCH] fix: pdf issue w/ markdown --- backend/open_webui/utils/pdf_generator.py | 24 +++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/backend/open_webui/utils/pdf_generator.py b/backend/open_webui/utils/pdf_generator.py index 6c3cf55ce..fb6cd57d5 100644 --- a/backend/open_webui/utils/pdf_generator.py +++ b/backend/open_webui/utils/pdf_generator.py @@ -54,18 +54,18 @@ class PDFGenerator: html_content = markdown(content, extensions=["pymdownx.extra"]) html_message = f""" -
- {date_str} -
-

- {role.title()} - {model} -

-
-
- {html_content} -
-
+
{date_str}
+
+
+

+ {role.title()} + {model} +

+
+
+                    {content}
+                
+
""" return html_message