Handle html fragments appended to paths

- When converting html links to absolute or relative, allow things like
header specifiers: “#some-header” or queries etc.  Convert only the
path, and leave the fragment intact.