相关疑难解决方法(0)

在 reStructuredText 中跳过标题级别

是否有可能以某种方式跳过 RestructuredText 中的标题级别?例如,给定

####
PART
####

*******
Chapter
*******

Section
=======

Subsection
----------

Subsubsection
^^^^^^^^^^^^

Paragraph
"""""""""

Another section
===============

Another Paragraph
"""""""""""""""""
The above heading seems to be rendered as a subsection-level heading...
Run Code Online (Sandbox Code Playgroud)

最后一段被呈现为一个小节而不是一个段落。(我使用Sphinx作为渲染器。)所以看起来部分级别的检测是本地的,尽管RestructuredText 文档说它应该是一致的:

不需要使用所有节标题样式,也不需要使用任何特定的节标题样式。但是,文档在使用节标题时必须保持一致:一旦建立了标题样式的层次结构,节就必须使用该层次结构。

restructuredtext heading python-sphinx

5
推荐指数
1
解决办法
1573
查看次数

标签 统计

heading ×1

python-sphinx ×1

restructuredtext ×1