Opening single quote error in Goldmark or Hugo?

The leading single quote character is not correct when converted from Markdown.

This:
SCR-20250423-rowa
Becomes this:
SCR-20250423-rozj

Is this a problem between Hugo and Goldmark, or a problem with Goldmark?

That is the Typographer extension of Goldmark. And it’s probably the “right” style for the configured language. You might have an unclosed single quote character somewhere else in the document that gets the conversion confused.

This:
SCR-20250423-rrvx
Comes before:
SCR-20250423-rrxq
Would that confuse Goldmark?

Context is key. Without knowing where who is taking what to convert to what I will neither say yes nor no. Those screenshotlets don’t tell the whole story. If that is frontmatter that is markdownified or rendered something else happens to it than when it’s content markup parsed.

Kramdown gets it right. It’s Markdown below the front matter.

See https://discourse.gohugo.io/t/how-to-debug-typographer-not-transforming-single-quotes-into-lsquo-in-one-case/53810/2.

It’s the same issue, just with an “n” instead of a “t”.

A 'new' car, a \'new\' motorcycle, and a "new" insurance policy.

image

So it’s Goldmark, and we’re not likely to see a fix. I’ll have to work around it.

Thanks!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.