From c74257008e078e5eb7c10a635f5982b43872e553 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 27 Oct 2018 01:59:41 +0300 Subject: [PATCH] Stop commonmark from escaping $ and ! in event links --- karma/bot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/karma/bot.py b/karma/bot.py index 9f70ca8..13a461d 100644 --- a/karma/bot.py +++ b/karma/bot.py @@ -208,10 +208,10 @@ class KarmaBot(Plugin): else: return None message += "\n".join( - f"{index + 1}. [Event](https://matrix.to/#/{event.room_id}/{event.event_id}) by " - f"[{self.denotify(event.sender)}](https://matrix.to/#/{event.sender}) with " - f"{self.sign(event.total)} karma (+{event.positive}/-{event.negative})\n" - f" > {event.content}" + f"{index + 1}. Event" + f" by [{self.denotify(event.sender)}](https://matrix.to/#/{event.sender}) with" + f" {self.sign(event.total)} karma (+{event.positive}/-{event.negative})\n" + f" > {event.content}" for index, event in enumerate(karma_list)) return message