gpt4 book ai didi

python-sphinx - ReStructuredText 中的粗体斜体

转载 作者:行者123 更新时间:2023-12-03 07:19:14 26 4
gpt4 key购买 nike

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

有所谓的“强调”(斜体)和“强强调”(粗体)文本的标记。他们是*italic text***bold text**分别。我还在有关此格式的一些文档中读到,这些格式标记不能简单地“嵌套”。 IE。 ***text*** (或 ** *text* ** )不会生成粗体斜体文本。

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

最佳答案

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

关于python-sphinx - ReStructuredText 中的粗体斜体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11984652/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com