Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Strikethrough? #53

Closed
KyleAMathews opened this issue May 22, 2012 · 11 comments
Closed

Support Strikethrough? #53

KyleAMathews opened this issue May 22, 2012 · 11 comments

Comments

@KyleAMathews
Copy link

Any chance you could add support for strikethrough? I know it's not in the official Markdown spec but it's something I need for my application.

@rymohr
Copy link

rymohr commented Jun 13, 2012

Just came across this issue as well. Clearly github flavored markdown doesn't support supports strike throughs. :)

@KyleAMathews
Copy link
Author

Haha! Oh, I feel really silly excited now! Thanks

@KyleAMathews
Copy link
Author

Oh oops, I see what you were saying @islandr now. Github supports strikethroughs but marked.js doesn't.

@chjj
Copy link
Member

chjj commented Jan 3, 2013

Right. Don't know how I missed this. Will add it eventually.

~~testing~~

testing

@chjj chjj closed this as completed in 2cd27a6 Jan 3, 2013
ghost pushed a commit to zergeborg/marked that referenced this issue May 13, 2016
@p00j4
Copy link

p00j4 commented Sep 5, 2020

Apologies if i'm reporting this at wrong place, not sure if github.io is also using marked.js but this is the most close I have found for my problem here The strikethrough doesn't work with the tildes
image

Ideas to fix this?
Here is my JS, could this be conflicting it in some way?

@UziTech
Copy link
Member

UziTech commented Sep 5, 2020

@p00j4 It looks like you are just using HTML not markdown. If you change ~~me~~ to <del>me</del> it should work.

@sanjeevbeekeeper
Copy link

Does this work on block code?.

Block

~~Iam striked~~

@UziTech
Copy link
Member

UziTech commented May 13, 2021

@sanjeevbeekeeper yes demo

@sanjeevbeekeeper
Copy link

Help me! where did i go wrong.
It is not working with block of code. - Demo

@calculuschild
Copy link
Contributor

No, Markdown code blocks do not process internal formatting.

From the Commonmark specs:

The content of a code fence is treated as literal text, not parsed

@UziTech
Copy link
Member

UziTech commented May 13, 2021

Sorry I thought you meant does it work on block elements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants