diff --git a/backend/app/services/markdown_tools.py b/backend/app/services/markdown_tools.py index 875cec1..c085c2a 100644 --- a/backend/app/services/markdown_tools.py +++ b/backend/app/services/markdown_tools.py @@ -415,6 +415,10 @@ async def convert_markdown( Dictionary with converted content """ try: + if output_format == "forge": + output_format = "html" + theme = "forge" + import markdown from markdown.extensions import tables, fenced_code, toc @@ -429,12 +433,20 @@ async def convert_markdown( ]) html = md.convert(content) - # Add basic styling + # Define styles based on theme + extra_head = "" + font_family = "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif" + + if theme == "forge": + extra_head = '' + font_family = "'Montserrat', sans-serif" + styled_html = f"""
+{extra_head}