Smart quotes do not work properly in Hugo (with Goldmark)

The Typographer extension in the Goldmark Markdown parser, which Hugo uses, has a number of issues with smart quotes. Here are two web pages demonstrating the issues:

Here is the bug report for Goldmark.

Sadly, it seems the author is not a native English speaker and does not feel able to deal with the smart quotes issues, he says “I welcome PR from native English writers.” So far no one has stepped up with a PR, the issue has been marked as stale and closed.

Here was a bug report for Hugo, which was closed because the bug is upstream in Goldmark.

Can anyone figure out a solution and/or submit a PR for Goldmark? Since Blackfriday has been deprecated, there does not seem to be a good workaround.

6 Likes

This issue seems to have been fixed by this merge on Goldmark and by an update of Hugo (I think 0.93.0).

1 Like

Yup! It now works for me.