lib/madowu/directorymapper.rb in madowu-0.0.3 vs lib/madowu/directorymapper.rb in madowu-0.0.4
- old
+ new
@@ -48,11 +48,12 @@
elsif path.fnmatch?('*.html')
next if FileTest.exist? (path.sub_ext('.md'))
link_path = Pathname.new(path.sub_ext('.html'))
title = self.get_title(path.to_s)
else
- link_path = path
- title = nil
+ #link_path = path
+ #title = nil
+ next
end
end
link_path = link_path.to_s.sub(/^#{md_dir}\//, '')
anchor = anchor.to_s.sub(/^#{md_dir}\//, '')
line = "* [#{anchor}](#{link_path})"