fix URL recognition in _DoAnchors and code recognition