The RST inline markup
Within most blocks of text, we can include inline markup. We can't include inline markup in the code samples or doctest blocks. Note that we cannot nest inline markup, either.
The RST inline markup includes a variety of common ASCII treatments of text. For example, we have *emphasis* and **strong emphasis**, which will usually produce italic and bold, respectively. We may want to emphasize code segments within a block of text; we use ``literal`` to force a monospaced font.
We can also include cross-references as the inline markup. A trailing _ indicates a reference, and it points away from the preceding words; a leading _ indicates a target, and it points toward the following words. For example, we might have `some phrase`_ ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access