-
Notifications
You must be signed in to change notification settings - Fork 261
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
GitHub flavored markdown: support single-tilde strikethrough #455
GitHub flavored markdown: support single-tilde strikethrough #455
Conversation
I am not in favor of this change; I think GitHub got it wrong. Some applications support subscripts via single tilde encapsulation (e.g., If this proposal is accepted, please make single tilde support optional and disabled by default. |
Whether or not GitHub got it wrong (and I don't necessarily disagree), the feature is advertised as conforming to GitHub Flavored Markdown, and is included in the That said, for my purposes, making it an off-by-default configurable option on the |
First, the existing behavior has been in place for years, and this is the first request that I am aware of that wants that to change. Second, as one of the largest (if not the largest) downstream consumers of goldmark, some Hugo users will be harmed by this change unless it's configurable and is disabled by default. |
I probably merge this PR as a default behavior. 'Defined by official spec' is strong support for this. If Hugo want to stay |
@bowman2001 Please comment. |
I'll let bowman2001 comment on prioritization, which to me seems fine. But regardless of whether a downstream project has a conflicting extension, this is a breaking change. |
Thanks for the notification, @jmooring. When we would set the priority of the subscript ( This change would definitely prohibit to use the strike-through and the subscript extension together, as it is currently possible. Therefore, I would also suggest not implementing this detail of the GFM spec or making it only optional. |
Strikethrough is just an extension. Need to control details, you can replace this extension with your extension. |
I've released v1.7.2. Maybe a subscript extension with a higher priority can cooperate with the strikethrough extension. |
Updates the Goldmark markdown renderer to v1.7.2, which includes yuin/goldmark#455, fixing the issue with single-tilde strikethroughs not rendering as strikethroughs as described by the Github Flavored Markdown spec.
According to the GitHub Flavored Markdown spec, strikethrough can use either one or two tildes. Currently, the
Strikethrough
extension only parses the two tilde form. This makes a tiny modification to reduce the minimum delimiter size for the Strikethrough extension so that it can correctly parse the single-tilde form.