WordPress.com and double-hyphens


WordPress is “helpfully” converting double-hyphens to – which is Unicode’s U+2013 “en dash”. This is nice, but messes up Gnu longopts, as in my post about top. This conversion even occurs inside <pre> blocks. No option for “stop messing up what I’ve typed” is apparent in the blog settings.

The only way that I’ve found around it is to use ampersand-hash-four-five-semicolon instead of either/both of the hyphens.

UPDATE 2008-08-11: Someone (from WordPress.com?) has chimed in in the comments and pointed to this. I’ve not tested it, it doesn’t deal specifically with shell options and I don’t really want highlighting anyway, but it’s a start. I’d still prefer a “don’t mess up what I’ve typed” option, which is what <pre> is already supposed to be…


One Response to “WordPress.com and double-hyphens”

  1. Douglas Says:

    There is an alternative, actually! You can actually use our “sourcecode” shortcode to post any sort of code and our servers won’t touch it.

    You can read about it here:

    Thanks for using WordPress.com!

    WordPress.com Support

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: