Skip to content

[Boards Bug] Cannot use parentheses properly with links

Modi··1 votes·3,014 views

Example: (I am linking to google with a trailing parenthesis)

The trailing parenthesis does not display in preview, and I assume will not display in the rendered page, either. If it does display here, then it is a bug with the preview functionality only. This is only a problem when the trailing parenthesis immediately follows the link's closing parenthesis

Edit: @boards dev, edit/quote my post to see the source text, for this example

6 Comments

AeroWaffle1 votes

Solution,

Use the '' as a character escape along with a space.

( Use Quote to see this example )

Though it looks like the space is necessary to break away from the link detection.

Many characters in markup languages that have special functions need to be escaped to show properly without triggering the special effect.

The '#' character is like this at the start of lines, for example;

#Without escaping the pound sign #Escaping the pound sign

Modi1 votes

BUT I DON"T WANT TO USE A SPACE :-)

Methinks the link detector needs a paren matching counter.

ModThe Djinn1 votes

{quoted}Methinks the link detector needs a paren matching counter.

I'll be honest here -- I don't know if we're capable of changing the code used by the boards to parse mark-up and, if we are, there are other things on the plate that we'd prefer to do before this specific adjustment, as there are features I think would be more valuable to the community.

KFCeytron1 votes

The HTML character code for a closing parenthesis is 41.

([site](https://www.google.com)) → (site)

Modi1 votes

{quoted}

The HTML character code for a closing parenthesis is 41.

([site](https://www.google.com)&#41&#59; → (site)

Clever workaround. I feel somewhat ashamed that I didn't think of it...I am a developer who primarily works on web applications.

KFCeytron1 votes

{quoted}

Clever workaround. I feel somewhat ashamed that I didn't think of it...I am a developer who primarily works on web applications.

There's no shame in still being a normal human being.

More from Discuss the Boards

More by Modi