We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 320df1b commit 87a11fdCopy full SHA for 87a11fd
lib/contents.rb
@@ -36,6 +36,7 @@ def subpages_for filename
36
# but NOT images of the form 
37
content.scan /[^!]\[.*?\]\((.*?)\)/ do |link, _|
38
next if (link =~ /^http/)
39
+ next if (link =~ %r(^.+/)) # cross-links to other sites, e.g. /installfest/editors
40
next if (link =~ %r(^//)) # protocol-less absolute links e.g. //google.com
41
links.push(link)
42
end
0 commit comments