diff --git a/lib/rdoc/markup.rb b/lib/rdoc/markup.rb index f7aa02fd9f..7fec1c6869 100644 --- a/lib/rdoc/markup.rb +++ b/lib/rdoc/markup.rb @@ -97,289 +97,7 @@ # # = \RDoc Markup Reference # -# == Block Markup -# -# === Paragraphs and Verbatim -# -# The markup engine looks for a document's natural left margin. This is -# used as the initial margin for the document. -# -# Consecutive lines starting at this margin are considered to be a -# paragraph. Empty lines separate paragraphs. -# -# Any line that starts to the right of the current margin is treated -# as verbatim text. This is useful for code listings: -# -# 3.times { puts "Ruby" } -# -# In verbatim text, two or more blank lines are collapsed into one, -# and trailing blank lines are removed: -# -# This is the first line -# -# -# This is the second non-blank line, -# after 2 blank lines in the source markup. -# -# -# There were two trailing blank lines right above this paragraph, that -# have been removed. In addition, the verbatim text has been shifted -# left, so the amount of indentation of verbatim text is unimportant. -# -# For HTML output RDoc makes a small effort to determine if a verbatim section -# contains Ruby source code. If so, the verbatim block will be marked up as -# HTML. Triggers include "def", "class", "module", "require", the "hash -# rocket"# (=>) or a block call with a parameter. -# -# === Headers -# -# A line starting with an equal sign (=) is treated as a -# heading. Level one headings have one equals sign, level two headings -# have two, and so on until level six, which is the maximum -# (seven hyphens or more result in a level six heading). -# -# For example, the above header was obtained with: -# -# === Headers -# -# In HTML output headers have an id matching their name. The above example's -# HTML is: -# -#
)
-#
-# Unlike conventional Wiki markup, general markup can cross line
-# boundaries. You can turn off the interpretation of markup by
-# preceding the first character with a backslash (see Escaping
-# Text Markup, below).
-#
-# === Links
-#
-# Links to starting with +http:+, +https:+, +mailto:+, +ftp:+ or +www.+
-# are recognized. An HTTP url that references an external image is converted
-# into an inline image element.
-#
-# Classes and methods will be automatically linked to their definition. For
-# example, RDoc::Markup will link to this documentation. By default
-# methods will only be automatically linked if they contain an _ (all
-# methods can be automatically linked through the --hyperlink-all
-# command line option).
-#
-# Single-word methods can be linked by using the # character for
-# instance methods or :: for class methods. For example,
-# #convert links to #convert. A class or method may be combined like
-# RDoc::Markup#convert.
-#
-# A heading inside the documentation can be linked by following the class
-# or method by an @ then the heading name.
-# RDoc::Markup@Links will link to this section like this:
-# RDoc::Markup@Links. Spaces in headings with multiple words must be escaped
-# with + like RDoc::Markup@Escaping+Text+Markup.
-# Punctuation and other special characters must be escaped like CGI.escape.
-#
-# The @ can also be used to link to sections. If a section and a
-# heading share the same name the section is preferred for the link.
-#
-# Links can also be of the form label[url], in which case +label+ is
-# used in the displayed text, and +url+ is used as the target. If +label+
-# contains multiple words, put it in braces: {multi word label}[url].
-# The +url+ may be an +http:+-type link or a cross-reference to a class,
-# module or method with a label.
-#
-# Links with the rdoc-image:
scheme will create an image tag for
-# HTML output. Only fully-qualified URLs are supported.
-#
-# Links with the rdoc-ref: scheme will link to the referenced class,
-# module, method, file, etc. If the referenced item is does not exist
-# no link will be generated and rdoc-ref: will be removed from the
-# resulting text.
-#
-# Links starting with rdoc-label:label_name will link to the
-# +label_name+. You can create a label for the current link (for
-# bidirectional links) by supplying a name for the current link like
-# rdoc-label:label-other:label-mine.
-#
-# Links starting with +link:+ refer to local files whose path is relative to
-# the --op directory. Use rdoc-ref: instead of
-# link: to link to files generated by RDoc as the link target may
-# be different across RDoc generators.
-#
-# Example links:
-#
-# https://github.com/ruby/rdoc
-# mailto:user@example.com
-# {RDoc Documentation}[http://rdoc.rubyforge.org]
-# {RDoc Markup}[rdoc-ref:RDoc::Markup]
+# See RDoc::MarkupReference.
#
# === Escaping Text Markup
#