Το reStructuredText είναι μια ευανάγνωστη σύνταξη σήμανσης απλού κειμένου που χρησιμοποιείται ευρέως στην Python και το Sphinx.
Επικεφαλίδες
Οι υπογραμμίσεις (και προαιρετικά υπεργραμμίσεις) ορίζουν τα επίπεδα επικεφαλίδων:
================
Document Title
================
Section Level 1
===============
Subsection Level 2
------------------
Sub-subsection Level 3
^^^^^^^^^^^^^^^^^^^^^^
Ενσωματωμένη μορφοποίηση
*emphasis (italics)*
**strong emphasis (bold)**
``inline code literal``
`external hyperlink <https://example.com>`_
Λίστες & Πίνακες
* Bullet item 1
* Bullet item 2
1. Numbered item 1
2. Numbered item 2
+------------------+------------------+
| Header Column 1 | Header Column 2 |
+==================+==================+
| Cell 1, 1 | Cell 1, 2 |
+------------------+------------------+
Οδηγίες & Μπλοκ κώδικα
.. code-block:: python
:linenos:
def greet(name):
return f"Hello, {name}!"
.. note::
This is an informational callout note.
.. warning::
This is a critical warning message.