ruby-changes:71736
From: Peter <ko1@a...>
Date: Fri, 15 Apr 2022 13:25:04 +0900 (JST)
Subject: [ruby-changes:71736] 92614111c0 (master): [ruby/rdoc] Fix links in docs
https://git.ruby-lang.org/ruby.git/commit/?id=92614111c0 From 92614111c0b175deaaba95ff3240a42e9b972b03 Mon Sep 17 00:00:00 2001 From: Peter Zhu <peter@p...> Date: Thu, 14 Apr 2022 13:11:57 -0400 Subject: [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 @@ https://github.com/ruby/ruby/blob/trunk/lib/rdoc/markup.rb#L391 # # * The \ must be doubled if not followed by white space: \\. # * But not in \<tt> tags: in a Regexp, <tt>\S</tt> 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 \<tt> tags: in a Regexp, <tt>\S</tt> 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 \<tt> tags, more precisely, leading backslashes are removed only if -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/