pvanand commited on
Commit
024b8e0
·
verified ·
1 Parent(s): ac015a5

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -429,7 +429,7 @@ async def presentation_chat(query: PresentationChatModel, background_tasks: Back
429
 
430
  if marp_content:
431
  # Replace image keywords
432
- marp_content_with_images = replace_image_keywords(marp_content)
433
 
434
  # Convert Markdown to HTML
435
  html_content = convert_markdown_marp(marp_content_with_images, 'html')
 
429
 
430
  if marp_content:
431
  # Replace image keywords
432
+ marp_content_with_images = replace_image_keywords(marp_content.strip("```").strip("``"))
433
 
434
  # Convert Markdown to HTML
435
  html_content = convert_markdown_marp(marp_content_with_images, 'html')