Fix the substituting of links with regexes

Had to set the "count" to 1 and replace the current text with the
modified html each time.
Don't replace text of passage when converting HTML