fix for markdown links with fragments and query elements