How to strikethrough a word in markdown

📋 Table Of Content
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
- Using double tilde (
~~
) - Using
<s>
tag - 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.
<s>
HTML tag in markdown
Using the 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 word using strike tag.strikethrough
<del>
tag to strike a word in markdown
Using 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.