Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

Consider the following text


[1]:, java.util.Comparator)

It does render correctly on preview, but incorrectly once saved. See for this example in real life

share|improve this question
Confirmed. I've tried to fix it, but to no avail. – fretje Mar 16 '10 at 15:32
Apparently the problem was with the url, and not with the <code></code> part. Encoding the space did the trick (see o.k.w's answer ==>…) – fretje Mar 16 '10 at 15:36
up vote 6 down vote accepted

The problem is the space which breaks the URL. Try the url encoded one like:
instead of
sort(java.util.List, java.util.Comparator)

You can also use backticks ` for inline codes.


Notice that, if you want to change sort algorithm during list usage, you can instead use Collections#sort.


Notice that, if you want to change sort algorithm during list usage, 
you can instead use [`Collections#sort`][1].

share|improve this answer
Oh, indeed, encoding the space to %20 did the trick! – fretje Mar 16 '10 at 15:35
@fretje, yea the 'evil' spaces... – o.k.w Mar 16 '10 at 15:38
@o.k.w:whoneedsthemanyway? – fretje Mar 16 '10 at 15:40
Wow, thanks for the reply and the fix in my answer (didn't even know you could do that !) – Riduidel Mar 16 '10 at 15:55
@Riduidel: see the bottom part of the faq ( Other people can edit my stuff?! Like Wikipedia, this site is collaboratively edited, and all edits are tracked. If you are not comfortable with the idea of your posts being edited by other trusted users, this may not be the site for you. – fretje Mar 16 '10 at 16:37

As of recently, when entering a link via the button (or Ctrl-L), the characters will automatically be escaped, so this is the safest way.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .