diff --git a/simplematrixbotlib/api.py b/simplematrixbotlib/api.py index 1d87b3d..bcb2689 100644 --- a/simplematrixbotlib/api.py +++ b/simplematrixbotlib/api.py @@ -263,7 +263,9 @@ async def send_markdown_message(self, room_id, message, msgtype='m.text'): "org.matrix.custom.html", "formatted_body": markdown.markdown(message, - extensions=['nl2br']) + extensions=[ + 'nl2br', + 'fenced_code']) }) async def send_image_message(self, room_id, image_filepath):