开发者

reStructured Text - Escape a headline?

I have a reStruc开发者_如何学JAVAturedText document. rST uses =====, etc. as a heading format.

However I need to include some lines that have this text in it, e.g.:

some of my text
=====
stuff
=====
some more of my text

And I don't want the ==== to be interpreted as a heading, i.e. I don't want stuff to be a heading. I would rather that those equal signs are just displayed as is.

Is this possible in rST?


The escape character in reStructuredText is \:

some of my text
\=====
stuff
=====
some more of my text

Will be rendered as:

some of my text ===== stuff ===== some more of my text
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜