Stop commonmark from escaping $ and ! in event links

This commit is contained in:
Tulir Asokan 2018-10-27 01:59:41 +03:00
parent 307d2271ee
commit c74257008e

View file

@ -208,9 +208,9 @@ class KarmaBot(Plugin):
else: else:
return None return None
message += "\n".join( message += "\n".join(
f"{index + 1}. [Event](https://matrix.to/#/{event.room_id}/{event.event_id}) by " f"{index + 1}. <a href='https://matrix.to/#/{event.room_id}/{event.event_id}'>Event</a>"
f"[{self.denotify(event.sender)}](https://matrix.to/#/{event.sender}) with " f" by [{self.denotify(event.sender)}](https://matrix.to/#/{event.sender}) with"
f"{self.sign(event.total)} karma (+{event.positive}/-{event.negative})\n" f" {self.sign(event.total)} karma (+{event.positive}/-{event.negative})\n"
f" > {event.content}" f" > {event.content}"
for index, event in enumerate(karma_list)) for index, event in enumerate(karma_list))
return message return message