Advertisement
❮ Previous: Markdown Emphasis Next: Markdown Blockquotes ❯

Markdown Text Formatting

Strike Through

You can strike through words by putting a horizontal line through the center of them.

This feature allows you to indicate that certain words or phrases are a mistake not meant for inclusion in the document.

Syntax:

~~words or phrases~~

To strikethrough words, use two tilde symbols ~~ before and after the words, as shown in following example:

Example

This text is ~~strike through~~.

Try this code ❯

You can use HTML <strike> or <del> tag to strike through the text, as shown in the following example:

Syntax:

<strike>words or phrases</strike>

<del>words or phrases</del>

Example


This text is <strike>strike through</strike>.

This text is <del>strike through</del>.

Try this code ❯


Advertisement

Highlight

You can highlight words or phrases by use two equal signs == before and after the words.

Not all Markdown applications support this but some Markdown processors allow you to highlight text.

Syntax:

==words or phrases==

Example

This is ==very important== text.

Try this code ❯

If you markdown application support HTML you can use the <mark> HTML tag.

Syntax:

<mark>words or phrases</mark>

Example

This is <mark>very important</mark> text.

Try this code ❯


Subscript

You can create a subscript, use one tilde symbol ~ before and after the characters.

Syntax:

~words or phrases~

Example

H~2~O

Try this code ❯

Alternatively, If your markdown application support HTML by using <sub> tag you make subscript.

Syntax:

<sub>words or phrases</sub>

Example

H<sub>2</sub>O

Try this code ❯


Superscript

There are some Markdown application allow you to use superscript to position one or more characters slightly above the normal line of type.

To create a superscript, use one caret symbol ^ before and after the characters.

Syntax:

^words or phrases^

Example

X^2^

Try this code ❯

Alternatively, If your Markdown application supports HTML than you can use the <sup> HTML tag.

Syntax:

<sup>2</sup>

Example

X<sup>2</sup>

Try this code ❯

❮ Previous: Markdown Emphasis Next: Markdown Blockquotes ❯
Advertisement