Repository: gohugoio/hugo (language: go)

Issue:
“Smart” punctuation + quotes
While @brycewray and I suspect it’s Goldmark-caused rather than Hugo-caused, the Goldmark developer seems to require Goldmark issues that are observed in Hugo to be proposed as Hugo issues before he will have anything to do with them. The relevant Goldmark bug is here: https://github.com/yuin/goldmark/issues/180

This issue occurs with the Typographer extension in Hugo — including the most recent release, 0.92.0 — if goldmark is the selected parser. It doesn’t occur if Blackfriday is the selected parser and “smart” punctuation is activated. (Sadly, Blackfriday is deprecated and the last commit in its repo is from Oct 26, 2020.)

Consider the following text in a Markdown file:

```markdown
John's dog is named Sam. The Smiths' dog is named Rover.
```

Expected result: Each apostrophe should be a “smart”/curly apostrophe (`&rsquo;`), given the default behavior of goldmark’s Typographer extension.

Actual result: Only the singular possessive (`John's dog`) has the “smart”/curly apostrophe, while the plural possessive (`Smiths' dog`) has the “dumb”/straight apostrophe (`&apos;`).

There are many other examples where the "smart" quotes fail to operate correctly, as shown on these two demo pages:

- https://gm-typographer.vercel.app/
- https://www.maximumethics.dev/blog/2021/03/smart-quotes/

This issue has been mentioned in the Hugo forums multiple times:
- https://discourse.gohugo.io/t/smart-quotes-do-not-work-properly-in-hugo-with-goldmark/34266
- https://discourse.gohugo.io/t/curly-quotes-with-hugo/36441

While the bug may be upstream, [the upstream maintainer does not speak English fluently](https://github.com/yuin/goldmark/issues/180#issuecomment-769640321) and does not feel comfortable dealing with this issue, while many Hugo users speak English and may be able to fix it.

Please remove the "stale bot" equivalent that closed [the previous Hugo issue](https://github.com/gohugoio/hugo/issues/8099) so that we don't have to keep making meaningless updates to keep the still valid issue alive. 

Thanks in advance for any help or consideration this issue may receive.

<!-- Please answer these questions before submitting your issue. Thanks! -->

### What version of Hugo are you using (`hugo version`)?

<pre>
> hugo version
hugo v0.92.0+extended linux/amd64 BuildDate=unknown
</pre>

### Does this issue reproduce with the latest release?
Yes.


Discussion / hints:

Fix patch:
diff --git a/go.mod b/go.mod
index a165dc0f79a..ee2ce497436 100644
--- a/go.mod
+++ b/go.mod
@@ -56,7 +56,7 @@ require (
 	github.com/spf13/pflag v1.0.5
 	github.com/spf13/viper v1.10.1
 	github.com/tdewolff/minify/v2 v2.9.29
-	github.com/yuin/goldmark v1.4.4
+	github.com/yuin/goldmark v1.4.7
 	github.com/yuin/goldmark-highlighting v0.0.0-20200307114337-60d527fdb691
 	gocloud.dev v0.20.0
 	golang.org/x/image v0.0.0-20211028202545-6944b10bf410
diff --git a/go.sum b/go.sum
index 5903ae7b836..dd8e6eff6a4 100644
--- a/go.sum
+++ b/go.sum
@@ -624,6 +624,8 @@ github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1
 github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
 github.com/yuin/goldmark v1.4.4 h1:zNWRjYUW32G9KirMXYHQHVNFkXvMI7LpgNW2AgYAoIs=
 github.com/yuin/goldmark v1.4.4/go.mod h1:rmuwmfZ0+bvzB24eSC//bk1R1Zp3hM0OXYv/G2LIilg=
+github.com/yuin/goldmark v1.4.7 h1:KHHlQL4EKBZ43vpA1KBEQHfodk4JeIgeb0xJLg7rvDI=
+github.com/yuin/goldmark v1.4.7/go.mod h1:rmuwmfZ0+bvzB24eSC//bk1R1Zp3hM0OXYv/G2LIilg=
 github.com/yuin/goldmark-highlighting v0.0.0-20200307114337-60d527fdb691 h1:VWSxtAiQNh3zgHJpdpkpVYjTPqRE3P6UZCOPa1nRDio=
 github.com/yuin/goldmark-highlighting v0.0.0-20200307114337-60d527fdb691/go.mod h1:YLF3kDffRfUH/bTxOxHhV6lxwIB3Vfj91rEwNMS9MXo=
 go.etcd.io/etcd/api/v3 v3.5.0/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs=


Test patch: