ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

How to link URLs with parentheses correctly?

asked 2012-01-23 19:16:28 -0500

dornhege gravatar image

Linking a URL with ) in it doesn't work as that's the same character that ends the link tag. I tried some basic escaping, unsuccessfully.

Is there a solution to this?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2012-01-24 00:10:15 -0500

joq gravatar image

updated 2012-01-24 00:15:53 -0500

I've been having trouble with that, too.

Turns out you can escape '(' with "%28" and ')' with "%29", the ASCII hex values. The close parenthesis is all that's really required, but the other helps to make things look less "unbalanced".

EDIT:

Even with that escape, it can be tricky. Sometimes the link works while editing, yet fails after the edit is committed.

We should probably open a ticket on this behavior.

edit flag offensive delete link more
0

answered 2012-01-24 23:35:48 -0500

felix k gravatar image

updated 2012-01-24 23:45:23 -0500

This is just a test, if inserting a link https://code.ros.org/trac/ros-pkg/ticket/424242" title="inexistent ticket page title">like this via the link button does work, as I had been experiencing difficulties with that. No brackets involved..

edit: gotcha!

What I wrote in my answer, plain markdown:

[like this](http://https://code.ros.org/trac/ros-pkg/ticket/424242 "inexistent ticket page title")

What the preview looks like (all linked and blue):

like this

What the answer looks like afterwards:

https://code.ros.org/trac/ros-pkg/ticket/424242" title="inexistent ticket page title">like this

Anyone else? As in the edit window it looks like before, there seems to be a disturbing parser when displaying posts..

edit flag offensive delete link more

Comments

There's a problem with the parser in the button popup detecting "https:" as valid prefix, hence there is a double "http://https:" afterwards in the plaintext. I work around that by removing the extra prefix or entering the URL manually.
AHornung gravatar image AHornung  ( 2012-01-24 23:49:28 -0500 )edit
Oh, I see... uhm.. what about updating? The current version is 0.7.26.. does anyone know who maintained ros answers?
felix k gravatar image felix k  ( 2012-01-25 03:03:57 -0500 )edit
I believe one can open a `ros` Trac ticket with the component of `answers.ros.org`.
joq gravatar image joq  ( 2012-01-25 03:29:37 -0500 )edit
felix k gravatar image felix k  ( 2012-01-26 20:43:30 -0500 )edit

Question Tools

Stats

Asked: 2012-01-23 19:16:28 -0500

Seen: 3,065 times

Last updated: Jan 24 '12