lib/rdoc/generator/markdown.rb in rdoc-markdown-0.3 vs lib/rdoc/generator/markdown.rb in rdoc-markdown-0.3.1
- old
+ new
@@ -175,10 +175,10 @@
# unintent multiline strings
md.unindent!
# Replace .html to .md extension in all markdown links
- md = md.gsub(/\[(.+)\]\((.+).html(.*)\)/) do |_|
+ md.gsub(/\[(.+)\]\((.+).html(.*)\)/) do |_|
match = Regexp.last_match
"[#{match[1]}](#{match[2]}.md#{match[3]})"
end
end