5

I have an issue on using strikethrough in markdown codeblock.

I can normally add the strike through using two tilde ~~ in the normal markdown, but when i write the strikethrough in codeblock i can only see ~~strikethough~~ and not strikethrough.

Example:

Should be:

Theory 1 : Some theory part that is irrelevant now but was relevant some time ago New theory part added later.

Output as:

Theory 1 : ~~Some theory part that is irrelevant now but was relevant some time ago~~ New theory part added later.

I cannot find the usage inside the code block on the markdown.

Is it possible to strikethrough inside codeblock or is it not yet supported.?

PaladiN
  • 4,625
  • 8
  • 41
  • 66
  • 2
    Possible duplicate of [strikethrough code in markdown on github](http://stackoverflow.com/questions/41395000/strikethrough-code-in-markdown-on-github) – Waylan Apr 26 '17 at 12:43
  • no, markdown is not interpreted inside codeblocks. you can always use inline/raw-html instead of codeblocks though.. – mb21 Apr 26 '17 at 13:31

2 Answers2

2

use <del>xyz</del>

leo
  • 454
  • 5
  • 10
0

Just Use

<del>something-to-strike-through

This will work until the next line break char in your text. i.e. block texts are also supported. And it will stop once you put a line break (ENTER).

Supun Wijerathne
  • 11,964
  • 10
  • 61
  • 87