Python sphinx 带有Sphinx/rst的安全部分标记

Python sphinx 带有Sphinx/rst的安全部分标记,python-sphinx,restructuredtext,docutils,Python Sphinx,Restructuredtext,Docutils,如何使用Sphinx/rst成功地标记段落的安全部分 (U) This is a portion marked heading ------------------------------------ (U) This is a portion marked sentence that renders not what I'd expect. (U) This too is portion marked, and renders unexpectedly. (U) This too is

如何使用Sphinx/rst成功地标记段落的安全部分

(U) This is a portion marked heading
------------------------------------

(U) This is a portion marked sentence that renders not what I'd expect.

(U) This too is portion marked, and renders unexpectedly.

(U) This too is portion marked, but it does render fine when another sentence is placed directly below.
Next sentence.
呈现时(见下文),标题看起来不错,但句子看起来像列表。由于对使用
字符的部分标记信息的严格要求,使用替换/替换指令不是可接受的解决方案

渲染输出:

(U) This is a portion marked heading

  U. This is a portion marked sentence that renders not what I'd expect.

  U. This too is portion marked, and renders unexpectedly.

(U) This too is portion marked, but it does render fine when another sentence is placed directly below. Next sentence.
这一行,

(U) This is a portion marked sentence
被解释为枚举列表中的项,其中
(U)
是由括号包围的枚举数

看。这里写着:

如果单行段落以与枚举数相同的文本开头(“a.”、“1.”、“b.”、“I”等),则必须转义第一个字符,以便将该行解析为普通段落:

\(U) This is a portion marked sentence
因此,
(U)
前面的反斜杠将使该行显示为普通段落:

\(U) This is a portion marked sentence
这一行,

(U) This is a portion marked sentence
被解释为枚举列表中的项,其中
(U)
是由括号包围的枚举数

看。这里写着:

如果单行段落以与枚举数相同的文本开头(“a.”、“1.”、“b.”、“I”等),则必须转义第一个字符,以便将该行解析为普通段落:

\(U) This is a portion marked sentence
因此,
(U)
前面的反斜杠将使该行显示为普通段落:

\(U) This is a portion marked sentence