 				)
 			)
 			(github-link
-				(if (projectile-project-root)
+				(if (and
+						(projectile-project-root)
+						(not (string-match " " github-link-prefix)))
 					; We're in a projectile-handled folder. Presumably this
 					; means we are in a github repo. If so, look for a github
 					; remote called "upstream" and lift parts of that to build

					(concat project-name project-filename)
					"`\n"
					github-link
					":\n```"
					""
					selection-lines-header
					(replace-regexp-in-string "." "-"
						selection-lines-header)

					nil
				)
			)
			(github-link-prefix
				(my/github-link-prefix (projectile-project-root)))
			(selection
				(if (use-region-p)
					(buffer-substring-no-properties
