In this post, we will see how to strikethrough a text in a sentence in markdown.

In markdown, we can use the double tilde ~~ sign but since markdown also supports HTML tags we can use some HTML tags too.

So, here we will see how to strikethrough a word using

  1. Using double tilde (~~)
  2. Using <s> tag
  3. Using <del> tag

Using double tilde to strike a text in markdown

In markdown, we can just use the double tilde sign (~~) to strike a word in a sentence.

This is a ~~strikthrough~~ word.

Output:

This is a strikthrough word.

This double tilde method is supported in github and Bitbucket too.

Using the <s> HTML tag in markdown

Now, since we can use a plain HTML tag in markdown, we can use the <s> tag to strike off a word in an md document.

This is <s>strikethrough</s> word using strike tag.

Output:

This is strikethrough word using strike tag.

Using <del> tag to strike a word in markdown

We can also use the <del> HTML tag to strike a text.

This is a <del>strikethrough</del> word in markdown

Output:

This is a strikethrough word in markdown.


💾 Recommended Articles