mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[DOC] Adding remarks about HTML and tables (#6485)
* Adding remarks about HTML and tables
This commit is contained in:
parent
40ceceb1a5
commit
5fc68e1101
Notes:
git
2022-10-05 03:50:56 +09:00
Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
1 changed files with 24 additions and 0 deletions
|
@ -151,6 +151,30 @@ We might consider whether to suppress when:
|
||||||
- The same reference is repeated many times
|
- The same reference is repeated many times
|
||||||
(e.g., _RDoc_ on this page).
|
(e.g., _RDoc_ on this page).
|
||||||
|
|
||||||
|
### HTML Tags
|
||||||
|
|
||||||
|
In general, avoid using HTML tags (even in formats where it's allowed)
|
||||||
|
because `ri` (the Ruby Interactive reference tool)
|
||||||
|
may not render them properly.
|
||||||
|
|
||||||
|
### Tables
|
||||||
|
|
||||||
|
Avoid building tables with HTML tags
|
||||||
|
(<tt><table></tt>, etc.)
|
||||||
|
|
||||||
|
Alternatives are:
|
||||||
|
|
||||||
|
- The GFM (GitHub Flavored Markdown) table extension,
|
||||||
|
which is enabled by default. See
|
||||||
|
{GFM tables extension}[https://github.github.com/gfm/#tables-extension-].
|
||||||
|
|
||||||
|
- A {verbatim text block}[rdoc-ref:RDoc::MarkupReference@Verbatim+Text+Blocks],
|
||||||
|
using spaces and punctuation to format the text.
|
||||||
|
|
||||||
|
Note that in neither case will
|
||||||
|
{text markup}[rdoc-ref:RDoc::MarkupReference@Text+Markup]
|
||||||
|
be honored.
|
||||||
|
|
||||||
## Documenting Classes and Modules
|
## Documenting Classes and Modules
|
||||||
|
|
||||||
The general structure of the class or module documentation should be:
|
The general structure of the class or module documentation should be:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue