I’m using the Hugo Tufte theme, and locally I encounter something unexpected, that looks like a real tiny little bug: in markdown, I write with double quotes "like this", and it correctly renders “like this”, but and most of the time, where I use single quotes 'like that', the rendering is correct, ‘like that’, however when the word starts with a t, like in ‘treasure’, it renders ’treasure’, with two right single quotes… I haven’t tested all the letters (my hunch is that it’s detecting 't in don't where it shouldn’t…?)
In case, I have this in my hugo.yml:
# Only modify the following if you know what you are doing
markup:
goldmark:
renderer:
unsafe: true
highlight:
noClasses: false
guessSyntax: true
But it seems unlikely to be the culprit. I know this is a pesky typographical minutia, but any idea how to fix that? Thanks in advance!
And I suspect there are several closed issues related to this.
Historically, and understandably, the project lead has had little interest in working on the typographer extension.
My suggestion would be to use single quotes for contractions and possessive forms, and use double quotes everywhere else. Or you can bypass the typographer extension as needed by escaping the character:
Thanks for this! Ah, those pesky natural language twists and turns… I can understand how that would only have low priority. Apologies if I did not find this when searching through the forum!
Indeed the solution you provide works, or one can also remember to use the literal character ‘ with words starting with a t!