Fixes links to not be duplicated when no text is used. Closes #3