diff --git a/skpy/msg.py b/skpy/msg.py index 5dd347f..48dc93b 100644 --- a/skpy/msg.py +++ b/skpy/msg.py @@ -331,6 +331,7 @@ def plain(self): text = re.sub(r"", "", self.content) text = re.sub(r""".*?""", r"\1", text) text = re.sub(r""".*?""", r"@\1", text) + text = re.sub(r""".*?""", r"", text) text = (text.replace("<", "<").replace(">", ">").replace("&", "&") .replace(""", "\"").replace("'", "'")) return text @@ -346,6 +347,7 @@ def markup(self): text = re.sub(r"", "{code}", text) text = re.sub(r""".*?""", r"\1", text) text = re.sub(r""".*?""", r"@\1", text) + text = re.sub(r""".*?""", r"", text) text = (text.replace("<", "<").replace(">", ">").replace("&", "&") .replace(""", "\"").replace("'", "'")) return text