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
~~
)<s>
tag<del>
tagIn 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 markdownNow, 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 markdownWe 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.