In this answer, the second link is not properly displayed, but the edit page with the preview works as expected.

Displayed answer

Displayed answer

Edit screen + preview

Edit screen + preview

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

I fixed it. Links aren't expected to have spaces, so when a space is present in an anchor link (which happens a lot in Javadocs), it must be encoded as %20.

The previewing formatter does seem to be too permissive, though. It definitely shouldn't let anything through that won't work in the real formatter.

share|improve this answer
    
Thanks for the help. I'm still concerned about the preview working and not the actual transformation. –  Robert Munteanu Aug 13 '09 at 22:19
    
There are several cases in which I've noticed the preview window behaving differently. Offhand, I can think of markdown inside words (like word**bold**word) and links with backslashes. –  mmyers Aug 13 '09 at 22:22
add comment
  1. Links should not have spaces.

  2. If you feel strongly that the javascript preview needs to be improved, it is open source, have at it!

share|improve this answer
add comment

You must log in to answer this question.

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