2016-08-12 9 views
1

Sphinx/rstを使用して部分マークの段落を正しくセキュリティ保護する方法はありますか?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. 

答えて

0

この単一ライン、

(U) This is a portion marked sentence 

(U)は、括弧で囲まれた列挙で列挙されたリストに項目として解釈されます。

http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#enumerated-listsを参照してください。ここにそれは言う:

1行の段落が列挙子( "A."、 "(b)"、 "I)"などと同じテキストで始まる場合、

\(U) This is a portion marked sentence 

だから(U)の前にバックスラッシュは通常の段落のようにライン表示を行います:最初の文字は通常の段落としてパースラインを持つためにエスケープする必要があります

関連する問題