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: