From c2461c7c1fdd26f9c37cbf98f777892fe4b07ee4 Mon Sep 17 00:00:00 2001 From: mst Date: Sat, 28 Sep 2024 12:20:06 +0300 Subject: [PATCH] urgent fix 2 --- CHANGELOG.md | 5 +++++ constants.py | 2 +- functions.py | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9285cdc..649420c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.5.3 + +### Fixes +* custom buttons not displaying correctly + ## 1.5.2 ### Fixes diff --git a/constants.py b/constants.py index 7296c3f..0e180b9 100644 --- a/constants.py +++ b/constants.py @@ -5,6 +5,6 @@ blacklistFile = 'word_blacklist.txt' configFile = 'config.json' faviconDir = Path.cwd() / 'static' / 'icons' / 'favicon' appName = 'CatAsk' -version = '1.5.2' +version = '1.5.3' # id (identifier) is to be interpreted as described in https://semver.org/#spec-item-9 version_id = '-alpha' diff --git a/functions.py b/functions.py index 477f949..629e86d 100644 --- a/functions.py +++ b/functions.py @@ -142,7 +142,8 @@ def renderMarkdown(text): 'button' ] allowed_attrs = { - 'a': 'href' + 'a': 'href', + 'button': 'class' } # hard_wrap=True means that newlines will be # converted into
tags