python-sphinx - ReStructuredText 中的粗体斜体

标签 python-sphinx restructuredtext

我正在使用 ReStructuredText (ReST) 格式编写一些文档,以便稍后使用 Sphinx 生成网页,但我找不到编写一些“粗体斜体”文本的方法。

有所谓的“强调”(斜体)和“强强调”(粗体)文本的标记。他们是*italic text***bold text**分别。我还在有关此格式的一些文档中读到,这些格式标记不能简单地“嵌套”。 IE。 ***text*** (或 ** *text* ** )不会生成粗体斜体文本。

仍然可能应该有某种方法来生成用粗体和斜体标记强调的文本,因为以这种方式标记文本片段是一种普遍的做法。

最佳答案

Although Markdown supports nesting bold and italic, reStructuredText does not (this is one of the rare cases where Markdown is more powerful, as there is no way to represent bold italics in reStructuredText).

https://gist.github.com/1855764

关于python-sphinx - ReStructuredText 中的粗体斜体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11984652/

相关文章:

python - 如何使用 intersphinx 正确链接到 PyQt5 文档?

python - 如何为 Django 项目构建 sphinx 文档

python-sphinx - 如何在代码块中使用替换定义?

python-sphinx - 如何在 Sphinx 中创建一个不会自动嵌套在 subsubsection 中的自定义 HTML div?

python - Python 文档字符串 (Sphinx) 中的 csv 表格式 - 一个单元格中的多行

restructuredtext - 如何将 reStructuredText 转换为纯文本

python - 在 sphinx 文档中打印变量值

python - 如何使用 Sphinx 记录 Python 包

python - 在 Sphinx : how to show documentation 中嵌入 matplotlib 图

django - 在 django(和 python)中解析重构文本