From 92614111c0b175deaaba95ff3240a42e9b972b03 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Thu, 14 Apr 2022 13:11:57 -0400 Subject: [PATCH] [ruby/rdoc] Fix links in docs www.ruby-lang.org without the leading https:// will generate an incorrect link because it will be treated as a relative link. https://github.com/ruby/rdoc/commit/28f32149b6 --- lib/rdoc/markup.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/rdoc/markup.rb b/lib/rdoc/markup.rb index 804d24fd2f..c3622eca0d 100644 --- a/lib/rdoc/markup.rb +++ b/lib/rdoc/markup.rb @@ -391,16 +391,16 @@ # # * The \ must be doubled if not followed by white space: \\. # * But not in \ tags: in a Regexp, \S matches non-space. -# * This is a link to {ruby-lang}[www.ruby-lang.org]. -# * This is not a link, however: \{ruby-lang.org}[www.ruby-lang.org]. +# * This is a link to {ruby-lang}[https://www.ruby-lang.org]. +# * This is not a link, however: \{ruby-lang.org}[https://www.ruby-lang.org]. # * This will not be linked to \RDoc::RDoc#document # # generates: # # * The \ must be doubled if not followed by white space: \\. # * But not in \ tags: in a Regexp, \S matches non-space. -# * This is a link to {ruby-lang}[www.ruby-lang.org] -# * This is not a link, however: \{ruby-lang.org}[www.ruby-lang.org] +# * This is a link to {ruby-lang}[https://www.ruby-lang.org] +# * This is not a link, however: \{ruby-lang.org}[https://www.ruby-lang.org] # * This will not be linked to \RDoc::RDoc#document # # Inside \ tags, more precisely, leading backslashes are removed only if