Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Enable fenced_code extenstion for markdown messages #178

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion simplematrixbotlib/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down