@@ -12,14 +12,11 @@ You can think of RST as "Markdown, but much better". Meaning:
1212The full Sphinx / RST documentation is available here:
1313https://www.sphinx-doc.org/en/master/index.html
1414
15- Translating Markdown to RST
16- ---------------------------
17-
18- If you're familiar with Markdown, here's some tips to get you started
19- in RST:
15+ If you're familiar with Markdown, the following sections contain some
16+ tips to get you started in RST.
2017
2118Whitespace and indenting
22- ^^^^^^^^^^^^^^^^^^^^^^^^
19+ ------------------------
2320
2421* MD: Whitespace and indenting generally doesn't matter in most
2522 cases. It does matter with bullets and sub bullets, but the rules
@@ -44,7 +41,7 @@ item. For example, this paragraph is not part of the MD/RST
4441bulleted list.
4542
4643Fixed width font
47- ^^^^^^^^^^^^^^^^
44+ ----------------
4845
4946* MD: Use single quotes:
5047
@@ -59,19 +56,19 @@ Fixed width font
5956 ``hello world``
6057
6158 Italics
62- ^^^^^^^
59+ -------
6360
6461* MD: ``*hello world* `` or ``_hello world_ ``
6562* RST: ``*hello world* ``
6663
6764Boldface
68- ^^^^^^^^
65+ --------
6966
7067* MD: ``**hello world** ``
7168* RST: Same as MD
7269
7370Chapter and section delimiters
74- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
71+ ------------------------------
7572
7673* MD: Either use one or more pound signs (#, ##, ###) to the left of
7774 the line of text, or underline the line of text with pound signs
@@ -101,20 +98,19 @@ Chapter and section delimiters
10198 .. code-block :: rst
10299
103100 Subsection 1: hello world
104- ^^^^^^^^^^^^^^^^^^^^^^^^^
101+ -------------------------
105102
106103 .. code-block :: rst
107104
108105 Subsubsection 1: hello world
109- ````````````````````````````
106+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
110107
111108 Meaning: underlines made of ``= `` denotes chapters, underlines
112- made of ``- `` denotes sections, underlines made of ``^ `` denotes
113- subsections, and underlines made of single quotes denote
114- subsubsections.
109+ made of ``- `` denotes sections, underlines made of ``- `` denotes
110+ subsections, and underlines made of ``^ `` denote subsubsections.
115111
116112Multi-line code/fixed-width font
117- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
113+ --------------------------------
118114
119115* MD: Use three single quotes to delimit blocks of text. Optionally
120116 include a token keyword to denote the syntax highlighting to use
@@ -171,7 +167,7 @@ The code-block is terminated by a blank line and then outdent back
171167to the same level as the first ``. `` in ``.. code-block:: ``.
172168
173169Un-numbered bullets
174- ^^^^^^^^^^^^^^^^^^^
170+ -------------------
175171
176172* MD: Start lines with ``* `` or ``- ``
177173* RST: Start lines with ``* ``. You can wrap lines at the same
@@ -198,7 +194,7 @@ Un-numbered bullets
198194 * You **MUST ** put blank lines between bullets!
199195
200196Numbered bullets:
201- ^^^^^^^^^^^^^^^^^
197+ -----------------
202198
203199* MD: Start lines with ``# ``
204200* RST: Start lines with ``#. ``
@@ -216,7 +212,7 @@ Numbered bullets:
216212 All the same rules for indentation apply as described above.
217213
218214Comments
219- ^^^^^^^^
215+ --------
220216
221217* MD: Enclose content in ``<!-- `` and ``--> `` (i.e., HTML comments,
222218 but they are included in the output)
@@ -239,7 +235,7 @@ Comments
239235 This line is no longer part of the comment.
240236
241237 Including files
242- ^^^^^^^^^^^^^^^
238+ ---------------
243239
244240* MD: You cannot include files in Markdown.
245241* RST: Use the ``.. include:: FILENAME `` directive. For example:
@@ -256,7 +252,7 @@ Including files
256252 file.
257253
258254Hyperlinks to URLs
259- ^^^^^^^^^^^^^^^^^^
255+ ------------------
260256
261257* MD:
262258
@@ -274,7 +270,7 @@ Hyperlinks to URLs
274270 It's a little weird, but you'll cope.
275271
276272Hyperlinks to anchors
277- ^^^^^^^^^^^^^^^^^^^^^
273+ ---------------------
278274
279275* MD: I forget offhand how to make anchors and links to them in MD.
280276* RST: Use the ``:ref: `` directive.
@@ -303,7 +299,7 @@ Hyperlinks to anchors
303299 <building-and-installing-section-label>`.
304300
305301 Hyperlinks to other (RST) pages
306- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
302+ -------------------------------
307303
308304* MD:
309305
@@ -328,7 +324,7 @@ Hyperlinks to other (RST) pages
328324 The page path is relative to the ``docs `` dir in the OMPI git tree.
329325
330326Macros
331- ^^^^^^
327+ ------
332328
333329* MD: There are no macros in Markdown.
334330* RST: We have defined a few OMPI-specific macros in RST. You can
@@ -354,7 +350,7 @@ Macros
354350 or ``--> ``.
355351
356352Brightly-colored boxes
357- ^^^^^^^^^^^^^^^^^^^^^^
353+ ----------------------
358354
359355* MD: There are no brightly-colored boxes in MD.
360356
0 commit comments