Skip to content

[DOC] Correct levels of headings #1412

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 25 additions & 25 deletions doc/rdoc/markup_reference.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
# - The entire markup (<tt>.rdoc</tt>) file or markdown (<tt>.md</tt>) file
# (which is usually multi-line).
#
# === Blocks
# == Blocks
#
# It's convenient to think of an \RDoc document as a sequence of _blocks_
# of various types (details at the links):
Expand Down Expand Up @@ -97,7 +97,7 @@
# which becomes the <em>base margin</em> for the block
# and is the initial <em>current margin</em> for the block.
#
# ==== Paragraphs
# === Paragraphs
#
# A paragraph consists of one or more non-empty lines of ordinary text,
# each beginning at the current margin.
Expand Down Expand Up @@ -134,7 +134,7 @@
# - {Horizontal rules}[rdoc-ref:RDoc::MarkupReference@Horizontal+Rules].
# - {Text Markup}[rdoc-ref:RDoc:MarkupReference@Text+Markup].
#
# ==== Verbatim Text Blocks
# === Verbatim Text Blocks
#
# Text indented farther than the current margin becomes a <em>verbatim text block</em>
# (or a code block, described next).
Expand Down Expand Up @@ -172,7 +172,7 @@
# A verbatim text block may not contain nested blocks of any kind
# -- it's verbatim.
#
# ==== Code Blocks
# === Code Blocks
#
# A special case of verbatim text is the <em>code block</em>,
# which is merely verbatim text that \RDoc recognizes as Ruby code:
Expand Down Expand Up @@ -208,7 +208,7 @@
# A code block may not contain nested blocks of any kind
# -- it's verbatim.
#
# ==== Block Quotes
# === Block Quotes
#
# You can use the characters <tt>>>></tt> (unindented),
# followed by indented text, to treat the text
Expand Down Expand Up @@ -255,7 +255,7 @@
# - {Horizontal rules}[rdoc-ref:RDoc::MarkupReference@Horizontal+Rules].
# - {Text Markup}[rdoc-ref:RDoc:MarkupReference@Text+Markup].
#
# ==== Lists
# === Lists
#
# Each type of list item is marked by a special beginning:
#
Expand Down Expand Up @@ -287,7 +287,7 @@
# - {Horizontal rules}[rdoc-ref:RDoc::MarkupReference@Horizontal+Rules].
# - {Text Markup}[rdoc-ref:RDoc:MarkupReference@Text+Markup].
#
# ===== Bullet Lists
# ==== Bullet Lists
#
# A bullet list item begins with a hyphen or asterisk.
#
Expand All @@ -311,7 +311,7 @@
# * Yet another.
# - Last one.
#
# ===== Numbered Lists
# ==== Numbered Lists
#
# A numbered list item begins with digits and a period.
#
Expand All @@ -337,7 +337,7 @@
# 1. Yet another.
# 1000. Last one.
#
# ===== Lettered Lists
# ==== Lettered Lists
#
# A lettered list item begins with letters and a period.
#
Expand All @@ -361,7 +361,7 @@
# x. Yet another.
# a. Last one.
#
# ===== Labeled Lists
# ==== Labeled Lists
#
# A labeled list item begins with one of:
#
Expand All @@ -388,7 +388,7 @@
# [bar baz] Yet another.
# bam:: Last one.
#
# ==== Headings
# === Headings
#
# A heading begins with up to six equal-signs, followed by heading text.
# Whitespace between those and the heading text is optional.
Expand All @@ -414,7 +414,7 @@
#
# - {Text Markup}[rdoc-ref:RDoc:MarkupReference@Text+Markup].
#
# ==== Horizontal Rules
# === Horizontal Rules
#
# A horizontal rule consists of a line with three or more hyphens
# and nothing more.
Expand All @@ -435,9 +435,9 @@
# -- Also not a horizontal rule.
# ---
#
# ==== Directives
# === Directives
#
# ===== Directives for Allowing or Suppressing Documentation
# ==== Directives for Allowing or Suppressing Documentation
#
# - <tt># :stopdoc:</tt>:
#
Expand Down Expand Up @@ -526,7 +526,7 @@
# /* :stopdoc: */
# /* :enddoc: */
#
# ===== Directive for Specifying \RDoc Source Format
# ==== Directive for Specifying \RDoc Source Format
#
# - <tt># :markup: _type_</tt>:
#
Expand All @@ -535,7 +535,7 @@
# parameter +type+ is one of: +rdoc+ (the default), +markdown+, +rd+, +tomdoc+.
# See {Markup Formats}[rdoc-ref:RDoc::Markup@Markup+Formats].
#
# ===== Directives for Method Documentation
# ==== Directives for Method Documentation
#
# - <tt># :call-seq:</tt>:
#
Expand Down Expand Up @@ -568,7 +568,7 @@
# overriding the actual yield in the code.
# See method #yields_directive.
#
# ===== Directives for Organizing Documentation
# ==== Directives for Organizing Documentation
#
# By default, \RDoc groups:
#
Expand Down Expand Up @@ -621,7 +621,7 @@
# in the given section, or in the default section if no title is given.
# Subsequent methods are to be grouped into the current section.
#
# ===== Directive for Including a File
# ==== Directive for Including a File
#
# - <tt># :include: _filepath_</tt>:
#
Expand All @@ -637,7 +637,7 @@
#
# For C code, the directive may appear in a stand-alone comment
#
# ==== Text Markup
# === Text Markup
#
# Text markup is metatext that affects HTML rendering:
#
Expand All @@ -646,7 +646,7 @@
# - Links.
# - Escapes: marking text as "not markup."
#
# ===== Typeface Markup
# ==== Typeface Markup
#
# Typeface markup can specify that text is to be rendered
# as italic, bold, or monofont.
Expand All @@ -656,7 +656,7 @@
# - More typeface markup:
# italic, bold, monofont.
#
# ====== Italic
# ===== Italic
#
# Text may be marked as italic via HTML tag <tt><i></tt> or <tt><em></tt>.
#
Expand Down Expand Up @@ -711,7 +711,7 @@
#
# ====== _Italic_ in a Heading
#
# ====== Bold
# ===== Bold
#
# Text may be marked as bold via HTML tag <tt><b></tt>.
#
Expand Down Expand Up @@ -768,7 +768,7 @@
#
# ===== *Bold* in a Heading
#
# ====== Monofont
# ===== Monofont
#
# Text may be marked as monofont
# -- sometimes called 'typewriter font' --
Expand Down Expand Up @@ -827,7 +827,7 @@
#
# ====== +Monofont+ in a Heading
#
# ==== Character Conversions
# === Character Conversions
#
# Certain combinations of characters may be converted to special characters;
# whether the conversion occurs depends on whether the special character
Expand All @@ -847,7 +847,7 @@
#
# - <tt>foo --- bar</tt> converts to foo --- bar (1-character em-dash).
#
# ==== Links
# === Links
#
# Certain strings in \RDoc text are converted to links.
# Any such link may be suppressed by prefixing a backslash.
Expand Down
Loading