aboutsummaryrefslogtreecommitdiff
path: root/mammoth
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2026-12-05 19:38:49 +0000
committerMichael Williamson <mike@zwobble.org>2026-12-05 19:38:49 +0000
commit8627676ce1cbb573ecc799141c35f302cbc20af9 (patch)
treeaa4f1041a27166b20ef44d6623711991766a042c /mammoth
parent414cb49cd08d4952cf5eff51bd9e2da811c4661b (diff)
Escape HTML tag and entity characters in Markdown writer
Diffstat (limited to 'mammoth')
-rw-r--r--mammoth/writers/markdown.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mammoth/writers/markdown.py b/mammoth/writers/markdown.py
index 79779de..5429cc2 100644
--- a/mammoth/writers/markdown.py
+++ b/mammoth/writers/markdown.py
@@ -204,4 +204,4 @@ class MarkdownWriter(Writer):
def _escape_markdown(value):
- return re.sub(r"([\`\*_\{\}\[\]\(\)\#\+\-\.\!])", r"\\\1", re.sub("\\\\", "\\\\\\\\", value))
+ return re.sub(r"([\`\*_\{\}\[\]\(\)\#\+\-\.\!<>&])", r"\\\1", re.sub("\\\\", "\\\\\\\\", value))