This answer is intended for testing.
Please include the source code used in the comments into the answer — so that we can check when the link works and when it doesn't.
- 1
$\DeclareMathOperator{\Hom}{Hom}$ [link](http://mathoverflow.net) $\Hom (U\times V,W)$ and [another link](http://mathoverflow.net).
- 2
$\DeclareMathOperator{\Hom}{Hom}$ [link](http://mathoverflow.net) $\Hom$ and [another link](http://mathoverflow.net).
- 3
$\DeclareMathOperator{\R}{\mathbb R}$[link](http://mathoverflow.net) $\R$ and [another link](http://mathoverflow.net).
- 4
$\DeclareMathOperator{\R}{\mathbb R}$ [link](http://mathoverflow.net) $\R$ and [another link](http://mathoverflow.net).
— The difference between this comment and the one before is just the space added before the first link. - 5
A $\DeclareMathOperator\a{a}$[link](http://mathoverflow.net) $\a$ and [another link](http://mathoverflow.net).
- 6
A [link](http://mathoverflow.net) $\DeclareMathOperator\a{a}$and [another link](http://mathoverflow.net) $\a$.
The problem seems to concern parsing of links between a\DeclareMathOperator
with no following space and the invocation of that math operator, wherever they occur in the comment. - 7
$\DeclareMathOperator\a{a}$A [link](http://mathoverflow.net) and [another link](http://mathoverflow.net) $\a$.
- 8
$\newcommand{\R}{\mathbb R}$[link](http://mathoverflow.net) $\R$ and [another link](http://mathoverflow.net) - this one uses "newcommand" rather than DeclareMathOperator
- 9
$\def\R{\mathbb R}$[link](http://mathoverflow.net) $\R$ and [another link](http://mathoverflow.net) - this one uses "def" rather than DeclareMathOperator
- 10
$\let\vp\varphi$[link](http://mathoverflow.net) $\vp$ and [another link](http://mathoverflow.net) - this one uses "let" rather than DeclareMathOperator