Change the default tags for HTML5 support

Author: csrnontolCreated Jan 25, 2018Updated Jul 2, 2025
Labelsbugenhancement

I need to use the strikethrough button so I added this feature through the toolbar method. The problem is the selected text is surrounded with strike instead of s or del tag. As you know the strike tag is not supported in HTML5.

How can I change the default tags?

Expected behavior: <s>Text</s> or <del>Text</del>

Actual behavior: <strike>Text</strike> Link

Links: unsoported strike tag, JSFiddle demo

Versions

  • medium-editor: 5.23.3
  • browser: Chrome 63
  • OS: Windows 10