Skip to content
Snippets Groups Projects
Commit 3dbfc022 authored by Andy Boughton's avatar Andy Boughton
Browse files

Merge pull request #239 from r-gaia-cs/core-fix-check-of-links

Avoid wrong error with links at index.md
parents 98fa0d23 cce9c649
Branches
Tags
No related merge requests found
......@@ -475,8 +475,18 @@ class IndexPageValidator(MarkdownValidator):
def _partition_links(self):
"""Check the text of every link in index.md"""
check_text = self.ast.find_external_links()
return check_text, []
external_links = self.ast.find_external_links()
check_text = []
no_check_text = []
for link in external_links:
if '#' in link.destination:
no_check_text.append(link)
else:
check_text.append(link)
return check_text, no_check_text
def _validate_intro_section(self):
"""Validate the intro section
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment