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

markup/goldmark: Add the Hugo Goldmark Extras "delete" extension #12604

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

jmooring
Copy link
Member

With Goldmark v1.7.1 and earlier, the Goldmark "strikethrough" extension was triggered by wrapping text within a pair of double-tilde characters. With Goldmark v1.7.2 and later, to provide full GFM compatibility, the Goldmark "strikethrough" extension is triggered by wrapping text within a pair of single- or double-tilde characters.

This change created a conflict with the Hugo Goldmark Extras "subscript" extension.

When enabling the Hugo Goldmark Extras "subscript" extension, if you want to render subscript and strikethrough text concurrently, you must:

  1. Disable the Goldmark "strikethrough" extension
  2. Enable the Hugo Goldmark Extras "delete" extension

Closes #12597

With Goldmark v1.7.1 and earlier, the Goldmark "strikethrough" extension was
triggered by wrapping text within a pair of double-tilde characters. With
Goldmark v1.7.2 and later, to provide full GFM compatibility, the Goldmark
"strikethrough" extension is triggered by wrapping text within a pair of
single- or double-tilde characters.

This change created a conflict with the Hugo Goldmark Extras "subscript"
extension.

When enabling the Hugo Goldmark Extras "subscript" extension, if you
want to render subscript and strikethrough text concurrently, you must:

1. Disable the Goldmark "strikethrough" extension
2. Enable the Hugo Goldmark Extras "delete" extension

Closes gohugoio#12597
@jmooring jmooring force-pushed the feat/add-goldmark-extras-delete-ext branch from 24f15cc to 33300b8 Compare June 17, 2024 14:39
@bep bep merged commit 8efc75b into gohugoio:master Jun 18, 2024
7 checks passed
@jmooring jmooring deleted the feat/add-goldmark-extras-delete-ext branch June 18, 2024 17:14
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

Successfully merging this pull request may close these issues.

Accommodate recent change to Goldmark's strikethrough extension
2 participants