From 3df107bc432dd2f157146deb8f825b127d5532b5 Mon Sep 17 00:00:00 2001 From: Arthur Souza Rodrigues Date: Thu, 8 Jan 2026 22:29:31 -0500 Subject: [PATCH] feat: add strikethrough support for tag The HTML element represents text that has been deleted from a document. Like the existing tag support, this maps to the font.strike property in python-docx. This is consistent with HTML semantics where both and represent struck-through text. --- html4docx/constants.py | 1 + 1 file changed, 1 insertion(+) diff --git a/html4docx/constants.py b/html4docx/constants.py index 2638462..b0f9a1b 100644 --- a/html4docx/constants.py +++ b/html4docx/constants.py @@ -32,6 +32,7 @@ 'i': 'italic', 'u': 'underline', 's': 'strike', + 'del': 'strike', # HTML5 deletion element - same as 'sup': 'superscript', 'sub': 'subscript', 'th': 'bold'