fix markdown code block
This commit is contained in:
parent
9139edcb60
commit
0588bc3f53
|
@ -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, }
|
content = {"msgtype": msgtype, "format": "org.matrix.custom.html", "body": message, }
|
||||||
|
|
||||||
if markdown_convert:
|
if markdown_convert:
|
||||||
content["formatted_body"] = markdown(message)
|
content["formatted_body"] = markdown(message, extensions=['fenced_code'])
|
||||||
|
|
||||||
if reply_to_event_id:
|
if reply_to_event_id:
|
||||||
if thread:
|
if thread:
|
||||||
|
|
Loading…
Reference in New Issue