Commit c3bf0d0a authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Fix to not update internal links

parent ed33997f
Loading
Loading
Loading
Loading
Loading
+2 −2
Changes for markdownTools/processMDSpec.py: 2 added lines, 2 removed lines.
Original line number Original line Diff line number Diff line
@@ -128,8 +128,8 @@ def expandPaths(lines:list[str], currentPath:str, childPath:str) -> list[str]:
			if linkPath.startswith(('http://', 'https://', '/')):
			if linkPath.startswith(('http://', 'https://', '/')):
				continue
				continue


			# Skip email addresses
			# Skip email addresses or internal links
			if '@' in linkPath:
			if '@' in linkPath or linkPath.startswith('#'):
				continue
				continue
			
			
			# Construct the new path by adding addedPath to the original path
			# Construct the new path by adding addedPath to the original path