We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3e6654 commit da4ff26Copy full SHA for da4ff26
lib/contents.rb
@@ -41,10 +41,10 @@ def subpages_for filename
41
content = content_for(filename)
42
43
# (markdown) links of the form: [link text](link_page)
44
- content.scan /\[.*?\]\((.*?)\)/ do |link, _|
+ # but NOT images of the form 
45
+ content.scan /[^!]\[.*?\]\((.*?)\)/ do |link, _|
46
next if (link =~ /^http/)
47
next if (link =~ %r(^//)) # protocol-less absolute links e.g. //google.com
- next if (link =~ /\.\w{3}$/) # jpg/gif/svg/etc
48
links.push(link) if !links.include? link
49
end
50
spec/sites/meals/clean_up.md
@@ -0,0 +1,5 @@
1
+Throw all your things away! 
2
+
3
+YOU'RE DONE!!
4
5
+
spec/sites/meals/clean_up.step
0 commit comments