Properly format local and inter-module links