diff --git a/lib/ronn/index.rb b/lib/ronn/index.rb index e874e92..eb26deb 100644 --- a/lib/ronn/index.rb +++ b/lib/ronn/index.rb @@ -88,7 +88,7 @@ def <<(path) raise ArgumentError, 'local paths only' if path =~ /(https?|mailto):/ return self if any? { |ref| ref.path == File.expand_path(path) } relative_path = relative_to_index(path) - @references << \ + @references << if path =~ /\.ronn?$/ reference manual(path).reference_name, relative_path else