If inputText specified and no input, don't generate the link target

#3

Also added test and re-generated dist file.