Loading tools/check.py +3 −2 Original line number Diff line number Diff line Loading @@ -362,9 +362,10 @@ class MarkdownValidator(object): # Validate local html links have matching md file return self._validate_one_html_link(link_node, check_text=check_text) elif not re.match(r"^((https?|ftp)://.+)", dest, re.IGNORECASE)\ elif not re.match(r"^((https?|ftp)://.+)|mailto:", dest, re.IGNORECASE)\ and not re.match(r"^#.*", dest): # If not web URL, and not anchor on same page, then # If not web or email URL, and not anchor on same page, then # verify that local file exists dest_path = os.path.join(self.lesson_dir, dest) dest_path = dest_path.split("#")[0] # Split anchor from filename Loading Loading
tools/check.py +3 −2 Original line number Diff line number Diff line Loading @@ -362,9 +362,10 @@ class MarkdownValidator(object): # Validate local html links have matching md file return self._validate_one_html_link(link_node, check_text=check_text) elif not re.match(r"^((https?|ftp)://.+)", dest, re.IGNORECASE)\ elif not re.match(r"^((https?|ftp)://.+)|mailto:", dest, re.IGNORECASE)\ and not re.match(r"^#.*", dest): # If not web URL, and not anchor on same page, then # If not web or email URL, and not anchor on same page, then # verify that local file exists dest_path = os.path.join(self.lesson_dir, dest) dest_path = dest_path.split("#")[0] # Split anchor from filename Loading