|
59 | 59 | # - The entire markup (<tt>.rdoc</tt>) file or markdown (<tt>.md</tt>) file |
60 | 60 | # (which is usually multi-line). |
61 | 61 | # |
62 | | -# === Blocks |
| 62 | +# == Blocks |
63 | 63 | # |
64 | 64 | # It's convenient to think of an \RDoc document as a sequence of _blocks_ |
65 | 65 | # of various types (details at the links): |
|
97 | 97 | # which becomes the <em>base margin</em> for the block |
98 | 98 | # and is the initial <em>current margin</em> for the block. |
99 | 99 | # |
100 | | -# ==== Paragraphs |
| 100 | +# === Paragraphs |
101 | 101 | # |
102 | 102 | # A paragraph consists of one or more non-empty lines of ordinary text, |
103 | 103 | # each beginning at the current margin. |
|
134 | 134 | # - {Horizontal rules}[rdoc-ref:RDoc::MarkupReference@Horizontal+Rules]. |
135 | 135 | # - {Text Markup}[rdoc-ref:RDoc:MarkupReference@Text+Markup]. |
136 | 136 | # |
137 | | -# ==== Verbatim Text Blocks |
| 137 | +# === Verbatim Text Blocks |
138 | 138 | # |
139 | 139 | # Text indented farther than the current margin becomes a <em>verbatim text block</em> |
140 | 140 | # (or a code block, described next). |
|
172 | 172 | # A verbatim text block may not contain nested blocks of any kind |
173 | 173 | # -- it's verbatim. |
174 | 174 | # |
175 | | -# ==== Code Blocks |
| 175 | +# === Code Blocks |
176 | 176 | # |
177 | 177 | # A special case of verbatim text is the <em>code block</em>, |
178 | 178 | # which is merely verbatim text that \RDoc recognizes as Ruby code: |
|
208 | 208 | # A code block may not contain nested blocks of any kind |
209 | 209 | # -- it's verbatim. |
210 | 210 | # |
211 | | -# ==== Block Quotes |
| 211 | +# === Block Quotes |
212 | 212 | # |
213 | 213 | # You can use the characters <tt>>>></tt> (unindented), |
214 | 214 | # followed by indented text, to treat the text |
|
255 | 255 | # - {Horizontal rules}[rdoc-ref:RDoc::MarkupReference@Horizontal+Rules]. |
256 | 256 | # - {Text Markup}[rdoc-ref:RDoc:MarkupReference@Text+Markup]. |
257 | 257 | # |
258 | | -# ==== Lists |
| 258 | +# === Lists |
259 | 259 | # |
260 | 260 | # Each type of list item is marked by a special beginning: |
261 | 261 | # |
|
287 | 287 | # - {Horizontal rules}[rdoc-ref:RDoc::MarkupReference@Horizontal+Rules]. |
288 | 288 | # - {Text Markup}[rdoc-ref:RDoc:MarkupReference@Text+Markup]. |
289 | 289 | # |
290 | | -# ===== Bullet Lists |
| 290 | +# ==== Bullet Lists |
291 | 291 | # |
292 | 292 | # A bullet list item begins with a hyphen or asterisk. |
293 | 293 | # |
|
311 | 311 | # * Yet another. |
312 | 312 | # - Last one. |
313 | 313 | # |
314 | | -# ===== Numbered Lists |
| 314 | +# ==== Numbered Lists |
315 | 315 | # |
316 | 316 | # A numbered list item begins with digits and a period. |
317 | 317 | # |
|
337 | 337 | # 1. Yet another. |
338 | 338 | # 1000. Last one. |
339 | 339 | # |
340 | | -# ===== Lettered Lists |
| 340 | +# ==== Lettered Lists |
341 | 341 | # |
342 | 342 | # A lettered list item begins with letters and a period. |
343 | 343 | # |
|
361 | 361 | # x. Yet another. |
362 | 362 | # a. Last one. |
363 | 363 | # |
364 | | -# ===== Labeled Lists |
| 364 | +# ==== Labeled Lists |
365 | 365 | # |
366 | 366 | # A labeled list item begins with one of: |
367 | 367 | # |
|
388 | 388 | # [bar baz] Yet another. |
389 | 389 | # bam:: Last one. |
390 | 390 | # |
391 | | -# ==== Headings |
| 391 | +# === Headings |
392 | 392 | # |
393 | 393 | # A heading begins with up to six equal-signs, followed by heading text. |
394 | 394 | # Whitespace between those and the heading text is optional. |
|
414 | 414 | # |
415 | 415 | # - {Text Markup}[rdoc-ref:RDoc:MarkupReference@Text+Markup]. |
416 | 416 | # |
417 | | -# ==== Horizontal Rules |
| 417 | +# === Horizontal Rules |
418 | 418 | # |
419 | 419 | # A horizontal rule consists of a line with three or more hyphens |
420 | 420 | # and nothing more. |
|
435 | 435 | # -- Also not a horizontal rule. |
436 | 436 | # --- |
437 | 437 | # |
438 | | -# ==== Directives |
| 438 | +# === Directives |
439 | 439 | # |
440 | | -# ===== Directives for Allowing or Suppressing Documentation |
| 440 | +# ==== Directives for Allowing or Suppressing Documentation |
441 | 441 | # |
442 | 442 | # - <tt># :stopdoc:</tt>: |
443 | 443 | # |
|
526 | 526 | # /* :stopdoc: */ |
527 | 527 | # /* :enddoc: */ |
528 | 528 | # |
529 | | -# ===== Directive for Specifying \RDoc Source Format |
| 529 | +# ==== Directive for Specifying \RDoc Source Format |
530 | 530 | # |
531 | 531 | # - <tt># :markup: _type_</tt>: |
532 | 532 | # |
|
535 | 535 | # parameter +type+ is one of: +rdoc+ (the default), +markdown+, +rd+, +tomdoc+. |
536 | 536 | # See {Markup Formats}[rdoc-ref:RDoc::Markup@Markup+Formats]. |
537 | 537 | # |
538 | | -# ===== Directives for Method Documentation |
| 538 | +# ==== Directives for Method Documentation |
539 | 539 | # |
540 | 540 | # - <tt># :call-seq:</tt>: |
541 | 541 | # |
|
568 | 568 | # overriding the actual yield in the code. |
569 | 569 | # See method #yields_directive. |
570 | 570 | # |
571 | | -# ===== Directives for Organizing Documentation |
| 571 | +# ==== Directives for Organizing Documentation |
572 | 572 | # |
573 | 573 | # By default, \RDoc groups: |
574 | 574 | # |
|
621 | 621 | # in the given section, or in the default section if no title is given. |
622 | 622 | # Subsequent methods are to be grouped into the current section. |
623 | 623 | # |
624 | | -# ===== Directive for Including a File |
| 624 | +# ==== Directive for Including a File |
625 | 625 | # |
626 | 626 | # - <tt># :include: _filepath_</tt>: |
627 | 627 | # |
|
637 | 637 | # |
638 | 638 | # For C code, the directive may appear in a stand-alone comment |
639 | 639 | # |
640 | | -# ==== Text Markup |
| 640 | +# === Text Markup |
641 | 641 | # |
642 | 642 | # Text markup is metatext that affects HTML rendering: |
643 | 643 | # |
|
646 | 646 | # - Links. |
647 | 647 | # - Escapes: marking text as "not markup." |
648 | 648 | # |
649 | | -# ===== Typeface Markup |
| 649 | +# ==== Typeface Markup |
650 | 650 | # |
651 | 651 | # Typeface markup can specify that text is to be rendered |
652 | 652 | # as italic, bold, or monofont. |
|
656 | 656 | # - More typeface markup: |
657 | 657 | # italic, bold, monofont. |
658 | 658 | # |
659 | | -# ====== Italic |
| 659 | +# ===== Italic |
660 | 660 | # |
661 | 661 | # Text may be marked as italic via HTML tag <tt><i></tt> or <tt><em></tt>. |
662 | 662 | # |
|
711 | 711 | # |
712 | 712 | # ====== _Italic_ in a Heading |
713 | 713 | # |
714 | | -# ====== Bold |
| 714 | +# ===== Bold |
715 | 715 | # |
716 | 716 | # Text may be marked as bold via HTML tag <tt><b></tt>. |
717 | 717 | # |
|
768 | 768 | # |
769 | 769 | # ===== *Bold* in a Heading |
770 | 770 | # |
771 | | -# ====== Monofont |
| 771 | +# ===== Monofont |
772 | 772 | # |
773 | 773 | # Text may be marked as monofont |
774 | 774 | # -- sometimes called 'typewriter font' -- |
|
827 | 827 | # |
828 | 828 | # ====== +Monofont+ in a Heading |
829 | 829 | # |
830 | | -# ==== Character Conversions |
| 830 | +# === Character Conversions |
831 | 831 | # |
832 | 832 | # Certain combinations of characters may be converted to special characters; |
833 | 833 | # whether the conversion occurs depends on whether the special character |
|
847 | 847 | # |
848 | 848 | # - <tt>foo --- bar</tt> converts to foo --- bar (1-character em-dash). |
849 | 849 | # |
850 | | -# ==== Links |
| 850 | +# === Links |
851 | 851 | # |
852 | 852 | # Certain strings in \RDoc text are converted to links. |
853 | 853 | # Any such link may be suppressed by prefixing a backslash. |
|
0 commit comments