OVERHEAD

Preserve double hyphens in Hugo

Hugo

Searching for an answer to this problem returned nothing, so let’s just fix that real quick…

In Hugo’s (TOML) config file, configure this:

Example Hugo TOML config which sets double hyphens to become… two hyphen characters.

[markup.goldmark.extensions.typographer]
endash = '--'

Yep, and that’s it, double hyphens won’t collapse into a single character anymore. Bye!