Loading markdownTools/processMDSpec.py +4 −0 Original line number Original line Diff line number Diff line Loading @@ -86,6 +86,10 @@ 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 if "@" in linkPath: continue # Construct the new path by adding addedPath to the original path # Construct the new path by adding addedPath to the original path newLinkPath = linkPath[2:] if linkPath.startswith('./') else linkPath newLinkPath = linkPath[2:] if linkPath.startswith('./') else linkPath Loading Loading
markdownTools/processMDSpec.py +4 −0 Original line number Original line Diff line number Diff line Loading @@ -86,6 +86,10 @@ 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 if "@" in linkPath: continue # Construct the new path by adding addedPath to the original path # Construct the new path by adding addedPath to the original path newLinkPath = linkPath[2:] if linkPath.startswith('./') else linkPath newLinkPath = linkPath[2:] if linkPath.startswith('./') else linkPath Loading