-
Notifications
You must be signed in to change notification settings - Fork 61
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
␡ Enable strikethrough as markdownit extension #1427
Conversation
Ends up parsing out to a `delete` node and uses the rendering logic for the delete directive
🦋 Changeset detectedLatest commit: fcbcd94 The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Thanks for adding those tasty-fireants! Is this one good to go? |
Hi @rowanc1 is this ready to merge? |
Added a test - thanks for the nudge. Will get this in when it goes green! |
@@ -75,6 +76,7 @@ export function createTokenizer(opts?: Options) { | |||
if (markdownit.linkify) { | |||
tokenizer.linkify.tlds(tlds.filter((tld) => !EXCLUDE_TLDS.includes(tld))); | |||
} | |||
if (extensions.strikethrough) tokenizer.enable('strikethrough'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: This is not enabled by default and I am not sure if there is a way to turn this on from the CLI quite yet. We can add those features in future!
Thanks @sglyon for your help! |
Ends up parsing out to a
delete
node and uses the rendering logic for the delete directive