From 0588bc3f5372c4aab88fec5f54e0751531609553 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Fri, 24 Mar 2023 22:40:32 -0600 Subject: [PATCH] fix markdown code block --- matrix_gpt/bot/chat_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix_gpt/bot/chat_functions.py b/matrix_gpt/bot/chat_functions.py index c3dc865..eed073c 100644 --- a/matrix_gpt/bot/chat_functions.py +++ b/matrix_gpt/bot/chat_functions.py @@ -38,7 +38,7 @@ async def send_text_to_room(client: AsyncClient, room_id: str, message: str, not content = {"msgtype": msgtype, "format": "org.matrix.custom.html", "body": message, } if markdown_convert: - content["formatted_body"] = markdown(message) + content["formatted_body"] = markdown(message, extensions=['fenced_code']) if reply_to_event_id: if thread: