以下是一个 reStructuredText 块,定义了一个“主要部分”和两个小节,每个小节都有一个内容句子。
Main Section
============
This is some main section content.
Subsection 1
------------
This is the content of subsection 1.
Subsection 2
------------
This is the content of subsection 2.
创建小节后,有没有办法添加作为“主要部分”一部分的后续段落?例如: 下面是一个 reStructuredText 块,它定义了一个“主要部分”和两个小节,每个小节都有一个内容句子。
Main Section
============
This is some main section content.
Subsection 1
------------
This is the content of subsection 1.
Subsection 2
------------
This is the content of subsection 2.
This is some more main section content -- I want this sentence to be "part of" "Main Section", not "Subsection 2".
有办法做到这一点吗?或者是否要求部分/小节的所有内容必须在添加小节之前出现?
不,与典型印刷书籍中的章节类似,这在 reStructuredText 中是不可能的。 rST 语法和 Dotutils 文档模型都没有提供小节之后的主要部分内容。