From 7315eb3edb2c7f0d2ea348bdcb5b82178625436d Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 21 May 2026 03:19:46 +0200 Subject: [PATCH] Include alignment tags in strip_non_formatting_tags --- nomadnet/util.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nomadnet/util.py b/nomadnet/util.py index 9b3427c..51aa440 100644 --- a/nomadnet/util.py +++ b/nomadnet/util.py @@ -182,4 +182,7 @@ def strip_non_formatting_tags(text): text = re.sub(r'`<', '', text) text = re.sub(r'`>', '', text) text = re.sub(r'`{', '', text) + text = re.sub(r'`r', '', text) + text = re.sub(r'`c', '', text) + text = re.sub(r'`l', '', text) return text \ No newline at end of file