Closed willfaught closed 2 months ago
I find it helpful to take Go's html/template package out of the mix by printing to console.
With Hugo's default markdown configuration:
{{ "Things <i>I've</i> done" | warnf "%v" }} → Things <i>I've</i> done
{{ "Things <i>I've</i> done" | plainify | warnf "%v" }} → Things I've done
{{ "Things <i>I've</i> done" | markdownify | warnf "%v" }} → Things <!-- raw HTML omitted -->I’ve<!-- raw HTML omitted --> done
{{ "Things <i>I've</i> done" | markdownify | plainify | warnf "%v" }} → Things I’ve done
So plainify isn't transforming the character... markdownify is, and that's due to the typographer extension being enabled by default.
What I did:
What I got:
What I expected:
I have to use htmlUnescape to undo the entity mangling:
Result:
This isn't clear from the plainify doc:
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes