mdBook
mdBook copied to clipboard
Smartypants aka automatic microtypography support?
See here. Rustdoc has automatic built-in support for this since a while. It is mosly apparent with single and double quotes are getting turned into proper quotation marks but also has support for n & m dashes, ellipses etc.
Basically this turns something like:
"He took the boat Paris---Rome ... When he arrived he exclamated -- instantly -- 'Heureka!'."
Into:
“He took the boat Paris—Rome … When he arrived he exclamated – instantly – ‘Heureka, I found a secret waterway!’.”
See also the markdown-it demo for more typographic replacements this could do.
Since mdBook has support for languages an extra cool feature would be to turn ' and " into localized quotes when the resp. language is set in book.toml.