Simon Breton
Simon Breton

Reputation: 2876

Strikethrough comments with Jupyter Notebook Markdown

Is this possible to Strikethrough my comments with Jupyter Notebook Markdown?

I've tried many options:

~~Strike~~
~Strike~
<s>Strike</s>
<strike>Strike<strike>
...

nothing is working.

Upvotes: 11

Views: 14304

Answers (3)

Kang
Kang

Reputation: 179

In the notebook toolbar, choose cell >> cell type >> markdown to change the current cell type first.

I verified this grammar ~strike text~, which works in notebook server 6.4.10

U can try other types of grammar, here is ref: https://mljar.com/blog/jupyter-notebook-bold-italic-strikethrough-underline/

Upvotes: 0

mgleahy
mgleahy

Reputation: 56

If you are referring to commented-out text inside of your code cells, then markdown formatting will not be applied to the text. You'd have to put the text in a separate markdown cell instead, then the syntax you noted for strikethrough will work.

Upvotes: 4

neha mali
neha mali

Reputation: 61

Yes I tried this in Jupyter notebook and all of them are working.

Upvotes: 6

Related Questions