ruby-changes:72906
From: Burdette <ko1@a...>
Date: Fri, 12 Aug 2022 01:43:54 +0900 (JST)
Subject: [ruby-changes:72906] 8a3f401b24 (master): [ruby/rdoc] Improvements to Text Markup examples (https://github.com/ruby/rdoc/pull/915)
https://git.ruby-lang.org/ruby.git/commit/?id=8a3f401b24 From 8a3f401b24e1b5f3e3a0f44c568a3e66ed595d42 Mon Sep 17 00:00:00 2001 From: Burdette Lamar <BurdetteLamar@Y...> Date: Thu, 11 Aug 2022 11:43:39 -0500 Subject: [ruby/rdoc] Improvements to Text Markup examples (https://github.com/ruby/rdoc/pull/915) https://github.com/ruby/rdoc/commit/d00ddfe57c --- doc/rdoc/markup_reference.rb | 104 ++++++++++++++++++++----------------------- 1 file changed, 48 insertions(+), 56 deletions(-) diff --git a/doc/rdoc/markup_reference.rb b/doc/rdoc/markup_reference.rb index 059511f478..c7578f3581 100644 --- a/doc/rdoc/markup_reference.rb +++ b/doc/rdoc/markup_reference.rb @@ -649,27 +649,27 @@ require 'rdoc' https://github.com/ruby/ruby/blob/trunk/doc/rdoc/markup_reference.rb#L649 # # Example input: # -# <i>Two words</i> in a paragraph. +# <i>Italicized words</i> in a paragraph. # # >>> -# <i>Two words in a block quote</i>. +# <i>Italicized words in a block quote</i>. # -# - <i>Two words</i> in a bullet list item. +# - <i>Italicized words</i> in a list item. # -# ====== <i>Two words</i> in a Heading +# ====== <i>Italicized words</i> in a Heading # # <i>Italicized passage containing *bold* and +monofont+.</i> # # Rendered HTML: # >>> -# <i>Two words</i> in a paragraph. +# <i>Italicized words</i> in a paragraph. # # >>> -# <i>Two words in a block quote</i>. +# <i>Italicized words in a block quote</i>. # -# - <i>Two words</i> in a bullet list item. +# - <i>Italicized words</i> in a list item. # -# ====== <i>Two words</i> in a Heading +# ====== <i>Italicized words</i> in a Heading # # <i>Italicized passage containing *bold* and +monofont+.</i> # @@ -678,29 +678,25 @@ require 'rdoc' https://github.com/ruby/ruby/blob/trunk/doc/rdoc/markup_reference.rb#L678 # # Example input: # -# _Word_ in a paragraph. +# _Italic_ in a paragraph. # # >>> -# _Word_ in a block quote. +# _Italic_ in a block quote. # -# - _Word_ in a bullet list item. +# - _Italic_ in a list item. # -# [_word_] _Word_ in a labeled list item. -# -# ====== _Word_ in a Heading +# ====== _Italic_ in a Heading # # Rendered HTML: # >>> -# _Word_ in a paragraph. +# _Italic_ in a paragraph. # # >>> -# _Word_ in a block quote. -# -# - _Word_ in a bullet list item. +# _Italic_ in a block quote. # -# [_word_] _Word_ in a labeled list item. +# - _Italic_ in a list item. # -# ====== _Word_ in a Heading +# ====== _Italic_ in a Heading # # ===== Bold # @@ -708,28 +704,28 @@ require 'rdoc' https://github.com/ruby/ruby/blob/trunk/doc/rdoc/markup_reference.rb#L704 # # Example input: # -# <b>Two words</b> in a paragraph. +# <b>Bold words</b> in a paragraph. # # >>> -# <b>Two words</b> in a block quote. +# <b>Bold words</b> in a block quote. # -# - <b>Two words</b> in a bullet list item. +# - <b>Bold words</b> in a list item. # -# ====== <b>Two words</b> in a Heading +# ====== <b>Bold words</b> in a Heading # # <b>Bold passage containing _italics_ and +monofont+.</b> # # Rendered HTML: # # >>> -# <b>Two words</b> in a paragraph. +# <b>Bold words</b> in a paragraph. # # >>> -# <b>Two words</b> in a block quote. +# <b>Bold words</b> in a block quote. # -# - <b>Two words</b> in a bullet list item. +# - <b>Bold words</b> in a list item. # -# ====== <b>Two words</b> in a Heading +# ====== <b>Bold words</b> in a Heading # # <b>Bold passage containing _italics_ and +monofont+.</b> # @@ -738,30 +734,26 @@ require 'rdoc' https://github.com/ruby/ruby/blob/trunk/doc/rdoc/markup_reference.rb#L734 # # Example input: # -# *Word* in a paragraph. +# *Bold* in a paragraph. # # >>> -# *Word* in a block quote. +# *Bold* in a block quote. # -# - *Word* in a bullet list item. +# - *Bold* in a list item. # -# [*word*] *Word* in a labeled list item. -# -# ===== *Word* in a Heading +# ===== *Bold* in a Heading # # Rendered HTML: # # >>> -# *Word* in a paragraph. +# *Bold* in a paragraph. # # >>> -# *Word* in a block quote. -# -# - *Word* in a bullet list item. +# *Bold* in a block quote. # -# [*word*] *Word* in a labeled list item. +# - *Bold* in a list item. # -# ===== *Word* in a Heading +# ===== *Bold* in a Heading # # ===== Monofont # @@ -771,28 +763,28 @@ require 'rdoc' https://github.com/ruby/ruby/blob/trunk/doc/rdoc/markup_reference.rb#L763 # # Example input: # -# <tt>Two words</tt> in a paragraph. +# <tt>Monofont words</tt> in a paragraph. # # >>> -# <tt>Two words</tt> in a block quote. +# <tt>Monofont words</tt> in a block quote. # -# - <tt>Two words</tt> in a bullet list item. +# - <tt>Monofont words</tt> in a list item. # -# ====== <tt>Two words</tt> in heading +# ====== <tt>Monofont words</tt> in heading # # <tt>Monofont passage containing _italics_ and *bold*.</tt> # # Rendered HTML: # # >>> -# <tt>Two words</tt> in a paragraph. +# <tt>Monofont words</tt> in a paragraph. # # >>> -# <tt>Two words</tt> in a block quote. +# <tt>Monofont words</tt> in a block quote. # -# - <tt>Two words</tt> in a bullet list item. +# - <tt>Monofont words</tt> in a list item. # -# ====== <tt>Two words</tt> in heading +# ====== <tt>Monofont words</tt> in heading # # <tt>Monofont passage containing _italics_ and *bold*.</tt> # @@ -801,26 +793,26 @@ require 'rdoc' https://github.com/ruby/ruby/blob/trunk/doc/rdoc/markup_reference.rb#L793 # # Example input: # -# +Word+ in a paragraph. +# +Monofont+ in a paragraph. # # >>> -# +Word+ in a block quote. +# +Monofont+ in a block quote. # -# - +Word+ in a bullet list item. +# - +Monofont+ in a list item. # -# ====== +Word+ in a Heading +# ====== +Monofont+ in a Heading # # Rendered HTML: # # >>> -# +Word+ in a paragraph. +# +Monofont+ in a paragraph. # # >>> -# +Word+ in a block quote. +# +Monofont+ in a block quote. # -# - +Word+ in a bullet list item. +# - +Monofont+ in a list item. # -# ====== +Word+ in a Heading +# ====== +Monofont+ in a Heading # # ==== Escaping Text Markup # -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/