diff options
author | Peter Zhu <peter@peterzhu.ca> | 2022-04-14 13:11:57 -0400 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-04-15 13:24:48 +0900 |
commit | 92614111c0b175deaaba95ff3240a42e9b972b03 (patch) | |
tree | a8ea70ff9c7355bdb44fbba7f05bd52cee96b0c9 | |
parent | 307cb57ba6d4833cc40d29d218561e98f9a1dcb9 (diff) | |
download | ruby-92614111c0b175deaaba95ff3240a42e9b972b03.tar.gz |
[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
-rw-r--r-- | lib/rdoc/markup.rb | 8 |
1 files 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 \<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 |