Handle documentation link when command is already markuped.

When `Function` is selected and reference link is clicked it behaves as expected instead of linking to ``ref/`Function`.html``

`ReplaceMarkdown` takes a new third option representing a function used to preprocess selection, this is used to strip the backticks.