You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+32-6Lines changed: 32 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ The following syntax is supported:
100
100
- PDFs (with URLs or local paths)
101
101
- Tables
102
102
- Strikethrough text
103
-
- Colored text
103
+
- Colored text and text styles (bold, italic, monospace)
104
104
105
105
See a `sample document source <https://raw.githubusercontent.com/adamtheturtle/sphinx-notionbuilder/refs/heads/main/sample/index.rst>`_ and the `published Notion page <https://www.notion.so/Sphinx-Notionbuilder-Sample-2579ce7b60a48142a556d816c657eb55>`_.
106
106
@@ -130,10 +130,10 @@ PDF files can be embedded using the ``pdf-include`` directive. Both remote URLs
130
130
131
131
The PDF will be rendered as an embedded PDF viewer in the generated Notion page.
132
132
133
-
Using Colored Text
134
-
------------------
133
+
Using Text Styles
134
+
-----------------
135
135
136
-
Colored text can be added using the `sphinxcontrib-text-styles <https://sphinxcontrib-text-styles.readthedocs.io/>`_ extension. First, install the extension:
136
+
Text styles can be added using the `sphinxcontrib-text-styles <https://sphinxcontrib-text-styles.readthedocs.io/>`_ extension. First, install the extension:
137
137
138
138
.. code-block:: console
139
139
@@ -150,13 +150,39 @@ Then add it to your ``conf.py``:
150
150
"sphinx_notion",
151
151
]
152
152
153
-
You can then use colored text in your reStructuredText documents:
153
+
You can then use various text styles in your reStructuredText documents:
154
+
155
+
Text Colors
156
+
~~~~~~~~~~~
154
157
155
158
.. code-block:: rst
156
159
157
160
This is :text-red:`red text`, :text-blue:`blue text`, and :text-green:`green text`.
158
161
159
-
The following colors are supported: red, blue, green, yellow, orange, purple, pink, brown, and gray.
162
+
The following text colors are supported: red, blue, green, yellow, orange, purple, pink, brown, and gray.
163
+
164
+
Background Colors
165
+
~~~~~~~~~~~~~~~~~
166
+
167
+
.. code-block:: rst
168
+
169
+
This is :bg-red:`red background text`, :bg-blue:`blue background text`, and :bg-green:`green background text`.
170
+
171
+
The following background colors are supported: red, blue, green, yellow, orange, purple, pink, brown, and gray.
172
+
173
+
Additional Text Styles
174
+
~~~~~~~~~~~~~~~~~~~~~~
175
+
176
+
.. code-block:: rst
177
+
178
+
This is :text-bold:`bold text`, :text-italic:`italic text`, :text-mono:`monospace text`, :text-strike:`strikethrough text`, and :text-underline:`underlined text`.
179
+
180
+
The following additional text styles are supported:
181
+
- ``:text-bold:`text`` - Makes text bold
182
+
- ``:text-italic:`text`` - Makes text italic
183
+
- ``:text-mono:`text`` - Makes text monospace
184
+
- ``:text-strike:`text`` - Makes text strikethrough
185
+
- ``:text-underline:`text`` - Makes text underlined
0 commit comments