I’m controlling the autoformatting in wordpress so that linux commands and especially configure directives show up correctly and can be used in a shell by copying and pasting directly from this blog.
The solution I’ve been using for years is to edit wp-includes/formatting.php and remove the 2nd and 3rd array elements from $static-characters (‘ –‘, ‘–‘,) and $static-replacements (‘ — ‘, ‘–’,)
That should yield lines similar to the following:
./configure –prefix=/usr –sysconfdir=/etc
–mandir=/usr/share/man –infodir=/usr/share/info
–localstatedir=/var
here’s a line that should include an em-dash —
here’s a line with 2 hyphens —
here’s a line with 2 hyphens — surrounded by spaces