Skip to content

Commit 2b7c3ce

Browse files
committedJun 20, 2024·
tabels
1 parent 25bd100 commit 2b7c3ce

File tree

1 file changed

+42
-14
lines changed

1 file changed

+42
-14
lines changed
 

‎rst/how-to-use-rst.rst

+42-14
Original file line numberDiff line numberDiff line change
@@ -121,20 +121,48 @@ References to a :term:`term`.
121121
Summary Table
122122
-------------
123123

124-
+--------------+---------------------------------------------------------------+----------------------------------------------+
125-
| **Element** | **Syntax Example** | **Description** |
126-
+--------------+---------------------------------------------------------------+----------------------------------------------+
127-
| **Title** | ``Title Level 1\n===========`` | Creates a title or section header |
128-
| **Paragraph**| ``This is a paragraph.`` | Creates a paragraph |
129-
| **Italic** | ``*Italic*`` | Creates italic text |
130-
| **Bold** | ``**Bold**`` | Creates bold text |
131-
| **List** | ``- Item 1\n- Item 2`` | Creates an unordered list |
132-
| **Image** | ``.. image:: path/to/image.png\n :alt: Alt text`` | Embeds an image |
133-
| **Video** | ``.. raw:: html\n <iframe src="URL"></iframe>`` | Embeds a video |
134-
| **Link** | `` `Link text <http://example.com>`_ `` | Creates a hyperlink |
124+
Summary Table
125+
-------------
126+
127+
+--------------+------------------------------------------------------------+----------------------------------------------+
128+
| **Element** | **Syntax Example** | **Description** |
129+
+--------------+------------------------------------------------------------+----------------------------------------------+
130+
| **Title** | ``Title Level 1\n===========`` | Creates a title or section header |
131+
+--------------+------------------------------------------------------------+----------------------------------------------+
132+
| **Paragraph**| ``This is a paragraph.`` | Creates a paragraph |
133+
+--------------+------------------------------------------------------------+----------------------------------------------+
134+
| **Italic** | ``*Italic*`` | Creates italic text |
135+
+--------------+------------------------------------------------------------+----------------------------------------------+
136+
| **Bold** | ``**Bold**`` | Creates bold text |
137+
+--------------+------------------------------------------------------------+----------------------------------------------+
138+
| **List** | ``- Item 1\n- Item 2`` | Creates an unordered list |
139+
+--------------+------------------------------------------------------------+----------------------------------------------+
140+
| **Image** | ``.. image:: path/to/image.png\n :alt: Alt text`` | Embeds an image |
141+
+--------------+------------------------------------------------------------+----------------------------------------------+
142+
| **Video** | ``.. raw:: html\n <iframe src="URL"></iframe>`` | Embeds a video |
143+
+--------------+------------------------------------------------------------+----------------------------------------------+
144+
| **Link** | `` `Link text <http://example.com>`_ `` | Creates a hyperlink |
145+
+--------------+------------------------------------------------------------+----------------------------------------------+
135146
| **Table** | ``+---+---+\n| H1 | H2 |\n+===+===+\n| C1 | C2 |\n+---+---+`` | Creates a simple table |
136-
| **Code** | ``::\n def func():\n print("code")`` | Creates a code block |
137-
| **Directive**| ``.. note::\n This is a note.`` | Adds special content like notes or warnings |
138-
+--------------+---------------------------------------------------------------+----------------------------------------------+
147+
+--------------+------------------------------------------------------------+----------------------------------------------+
148+
| **Code** | ``::\n def func():\n print("code")`` | Creates a code block |
149+
+--------------+------------------------------------------------------------+----------------------------------------------+
150+
| **Directive**| ``.. note::\n This is a note.`` | Adds special content like notes or warnings |
151+
+--------------+------------------------------------------------------------+----------------------------------------------+
152+
153+
154+
Minimal Example
155+
156+
+--------------+------------------------------------------------------------+----------------------------------------------+
157+
| **Element** | **Syntax Example** | **Description** |
158+
+--------------+------------------------------------------------------------+----------------------------------------------+
159+
| **Title** | ``Title Level 1\n===========`` | Creates a title or section header |
160+
+--------------+------------------------------------------------------------+----------------------------------------------+
161+
| **Paragraph**| ``This is a paragraph.`` | Creates a paragraph |
162+
+--------------+------------------------------------------------------------+----------------------------------------------+
163+
| **Italic** | ``*Italic*`` | Creates italic text |
164+
+--------------+------------------------------------------------------------+----------------------------------------------+
165+
166+
139167

140168

0 commit comments

Comments
 (0)
Please sign in to comment.