Skip to content

Preserve strikethrough from <strike> and CSS line-through - #2342

Open
Gyanu Mayank (gyanu2507) wants to merge 1 commit into
microsoft:mainfrom
gyanu2507:fix/html-strikethrough-variants
Open

Preserve strikethrough from <strike> and CSS line-through#2342
Gyanu Mayank (gyanu2507) wants to merge 1 commit into
microsoft:mainfrom
gyanu2507:fix/html-strikethrough-variants

Conversation

@gyanu2507

Copy link
Copy Markdown

<s> and <del> already convert to ~~text~~. <strike> and style="text-decoration: line-through" were flattened, so struck text looked like current text.

I hooked those two cases in the markdownify subclass. DOCX double-strike still depends on how mammoth emits HTML; I left that alone here.

Fixes #2340

<s> and <del> already became ~~text~~. The obsolete strike element and inline text-decoration: line-through were flattened to plain text, so deleted wording looked current.
@gyanu2507

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Strikethrough is silently lost for <strike>, CSS line-through, and DOCX double-strike

1 participant