]> git.maquefel.me Git - brevno-suite/hugo/commit
markup/goldmark: Add the Hugo Goldmark Extras "delete" extension
authorJoe Mooring <joe.mooring@veriphor.com>
Sat, 15 Jun 2024 13:45:27 +0000 (06:45 -0700)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 18 Jun 2024 16:56:20 +0000 (18:56 +0200)
commit8efc75b73f4808b7677247e27a18f3ad72416ae4
tree380a251679e6d7207cbaf208576423378371a014
parentad6d91cabd84aac1be6e83511a543643562cb1b2
markup/goldmark: Add the Hugo Goldmark Extras "delete" extension

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
docs/data/docs.yaml
go.mod
go.sum
markup/goldmark/convert.go
markup/goldmark/goldmark_config/config.go
markup/goldmark/goldmark_integration_test.go