fix regression when handling [](#foo)