fix: refactor convertLinksToAbsolute