When exporting an org-mode to HTML, orphaned double-dashes formed during fill-paragraph don’t export correctly as a single, longer dash in the HTML (like all the others do). Is there a way to fix this?
For example,
Lorem -- ipsum doler sit amet --
consectetur adipiscing elit
will export as
Lorem – ipsum doler sit amet — consectetur adipiscing elit.
instead of
Lorem – ipsum doler sit amet – consectetur adipiscing elit.
After fuddling around with it for (more than) a while, I found a workable solution.
org-mode(or whatever it uses internally) seems to only parse the sequence--(sandwiched by spaces, and not--, where there is no trailing space) as an–. Simply add this to your.emacs: