ReStructuredText 中的粗斜体 [英] Bold italic in ReStructuredText

查看:58
本文介绍了ReStructuredText 中的粗斜体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 ReStructuredText (ReST) 格式编写一些文档,以便稍后使用 Sphinx 生成网页,但我找不到编写一些粗斜体"文本的方法.

I'm writing some documentation using ReStructuredText (ReST) format for the later web-page generation using Sphinx, and I cannot find a way to write some "bold italic" text.

所谓的强调"(斜体)和强烈强调"(粗体)文本都有标记.它们分别是 *italic text***bold text**.我还在一些关于这种格式的文档中读到这些格式标记不能简单地嵌套".IE.***text***(或** *text* **)不会产生粗斜体 文字.

There are markers for the so-called 'emphasis' (italic) and 'strong emphasis' (bold) text. They are *italic text* and **bold text** respectively. I also read in some documentation on this format that these formatting markers cannot be simply "nested". I.e. the ***text*** (or ** *text* **) does not produce the bold italic text.

仍然可能应该有某种方法来生成用粗体和斜体标记强调的文本,因为以这种方式标记文本片段是一种普遍的做法.

Still there probably should be some way to produce a text emphasized both with bold and italic markers, since it is a widespread practice to mark pieces of text that way.

推荐答案

虽然 Markdown 支持嵌套粗体和斜体,但 reStructuredText 不支持(这是 Markdown 更强大的少数情况之一,因为在 reStructuredText 中无法表示粗斜体).

Although Markdown supports nesting bold and italic, reStructuredText does not (this is one of the rare cases where Markdown is more powerful, as there is no way to represent bold italics in reStructuredText).

https://gist.github.com/1855764

这篇关于ReStructuredText 中的粗斜体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆