|
957 | 957 | # |
958 | 958 | # [Heading] |
959 | 959 | # |
960 | | -# - Link: <tt>RDoc::RD@LICENSE</tt> links to RDoc::RDoc::RD@LICENSE. |
| 960 | +# Headings generate GitHub-style anchors: lowercase, spaces as hyphens, |
| 961 | +# special characters removed. For example, <tt>== Hello World</tt> generates |
| 962 | +# anchor <tt>hello-world</tt>. |
961 | 963 | # |
962 | | -# Note that spaces in the actual heading are represented by <tt>+</tt> characters |
963 | | -# in the linkable text. |
| 964 | +# Link to headings are recommended to use the GitHub-style anchor format: |
964 | 965 | # |
965 | | -# - Link: <tt>RDoc::Options@Saved+Options</tt> |
966 | | -# links to RDoc::Options@Saved+Options. |
| 966 | +# - <tt>RDoc::Options@saved-options</tt> links to RDoc::Options@saved-options. |
| 967 | +# - <tt>RDoc::RD@license</tt> links to RDoc::RD@license. |
967 | 968 | # |
968 | | -# Punctuation and other special characters must be escaped like CGI.escape. |
| 969 | +# To link to headings on the same page, you can also use Markdown-style anchor links: |
| 970 | +# |
| 971 | +# - <tt>{link text}[#hello-world]</tt> links to the heading <tt>== Hello World</tt>. |
| 972 | +# - <tt>{link text}[#saved-options]</tt> links to the heading <tt>== Saved Options</tt>. |
| 973 | +# |
| 974 | +# The legacy format with <tt>+</tt> for spaces is also supported, but not recommended: |
| 975 | +# |
| 976 | +# - <tt>RDoc::Options@Saved+Options</tt> links to RDoc::Options@Saved+Options. |
969 | 977 | # |
970 | 978 | # Pro tip: The link to any heading is available in the alphabetical table of contents |
971 | | -# at the top left of the page for the class or module. |
| 979 | +# at the right sidebar of the page. |
972 | 980 | # |
973 | 981 | # [Section] |
974 | 982 | # |
975 | | -# See {Directives for Organizing Documentation}[#class-RDoc::MarkupReference-label-Directives+for+Organizing+Documentation]. |
| 983 | +# See {Directives for Organizing Documentation}[#class-rdoc-markupreference-directives-for-organizing-documentation]. |
976 | 984 | # |
977 | 985 | # - Link: <tt>RDoc::Markup::ToHtml@Visitor</tt> links to RDoc::Markup::ToHtml@Visitor. |
978 | 986 | # |
|
0 commit comments