2
$\begingroup$

To cite hyperlinks in comment; I use the command format:

Here's an inline link to [Google](http://www.google.com/).,
out of from total 3 formats.

I've experienced, if the link-address being cited, itself contains a pair of first bracket, it gives rise to a strange situation.

screenshot-1

bug example-1

( comment permalink )

bug example 2

( comment permalink )

So, my question is; Is there any way to code them properly?


P.S.

  1. The bug not affecting the answering. It is only affecting the commenting.

  2. I do not use later-2 commands for commenting because...

    I've tested the other 2 formats in commenting; but that doesn't work. such as :

Here's a reference-style link to [Google][1]. [1]: http://www.google.com/ gives rise to

screenshot - 3 sandboxed
( comment example permalink)

and

Here's a very readable link to [Yahoo!][yahoo]. [yahoo]: http://www.yahoo.com/

screenshot-4 enter image description here
( comment example permalink) ;

So seemingly the later-2 format not for use in comments.

$\endgroup$
3
$\begingroup$

The parentheses in URL are not a problem: for example,
[text](https://en.wikipedia.org/wiki/Barbel_(anatomy)) works fine in comments without any escaping. It doesn't work in yours because you typed something with a whitespace within the URL parentheses:

[text](https://en.wikipedia.org/wiki/Barbel_(anatomy) something)

which of course broke the syntax.


The inline style text is the only option for comments. When a character contained in the URL gets misinterpreted, escape it with a backslash \: for example, \[ instead of [. But this doesn't seem to be necessary for parentheses and brackets.

$\endgroup$
4
  • 1
    $\begingroup$ url with round parens works correctly. $\endgroup$
    – user13145
    Dec 21 '16 at 18:26
  • $\begingroup$ text $\endgroup$ Dec 21 '16 at 18:28
  • 1
    $\begingroup$ url with square brackets also works (the URL is invalid, but that's a different thing). $\endgroup$
    – user13145
    Dec 21 '16 at 18:29
  • $\begingroup$ Hmm it working correctly. Seemingly subconsciously I was typing a space bar between last-2 closing bracket $\endgroup$ Dec 21 '16 at 18:30

You must log in to answer this question.

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