| 1 |
Section heading levels |
| 2 |
====================== |
| 3 |
|
| 4 |
Level 1 |
| 5 |
======= |
| 6 |
Nested sections |
| 7 |
|
| 8 |
Level 2 |
| 9 |
------- |
| 10 |
reach at some level |
| 11 |
|
| 12 |
Level 3 |
| 13 |
``````` |
| 14 |
(depending on the document class and output format) |
| 15 |
|
| 16 |
level 4 |
| 17 |
^^^^^^^ |
| 18 |
a level |
| 19 |
|
| 20 |
level 5 |
| 21 |
+++++++ |
| 22 |
that is not supported by the output format. |
| 23 |
|
| 24 |
level 6 |
| 25 |
::::::: |
| 26 |
Unsupported in LaTeX and HTML5 |
| 27 |
(HTML5 reserves the 1st level for the document title). |
| 28 |
|
| 29 |
level 7 |
| 30 |
####### |
| 31 |
Unsupported in HTML4. |
| 32 |
|
| 33 |
level 8 |
| 34 |
<<<<<<< |
| 35 |
Unsupported in ODT. |
| 36 |
|
| 37 |
.. _references: |
| 38 |
|
| 39 |
Section titles with inline markup |
| 40 |
================================== |
| 41 |
|
| 42 |
*emphasized*, H\ :sub:`2`\ O, :math:`x^2`, and references_ |
| 43 |
---------------------------------------------------------- |
| 44 |
|
| 45 |
Substitutions |fail| |
| 46 |
-------------------- |
| 47 |
.. |fail| replace:: work |
| 48 |
|
| 49 |
Note, that the "reference name" for this section is derived from the |
| 50 |
content *before* substitution. You can link to it with the `phrase |
| 51 |
reference`_ "`substitutions fail`_". |
| 52 |
This behaviour may be exploited to get intelligible IDs after `identifier |
| 53 |
normalization`_ of the section's reference name. |
| 54 |
|
| 55 |
.. _identifier normalization: https://docutils.sourceforge.io/docs/ref/rst/ |
| 56 |
directives.html#identifier-normalization |
| 57 |
.. _phrase reference: https://docutils.sourceforge.io/docs/ref/rst/ |
| 58 |
restructuredtext.html#hyperlink-references |