Skip to content

Preserve bold/italic/inline code/strike

In markdown and HTML, we can define bold/italic/inline code/strike in the following ways:

Tag Type Syntax
Bold/Strong Markdown **
Bold/Strong Markdown __
Bold/Strong HTML <b>
Bold/Strong HTML <strong>
Italic/Emphasis Markdown *
Italic/Emphasis Markdown _
Italic/Emphasis HTML <i>
Italic/Emphasis HTML <em>
Inline code Markdown One or more ` followed by one or more spaces
Inline code Code <code>
Strike Markdown ~~
Strike HTML <s>
Strike HTML <strike>
Strike HTML <del>

We should preserve markdown / HTML style when any of these styles are used. Meaning, when the comment/page is saved, the original style of formatting is preserved.

Edited by Himanshu Kapoor