相关疑难解决方法(0)

如何使用ReStructured Text(rst2html.py)在文本中使用颜色或如何插入没有空行的HTML标签?

如何在ReStructured Text中使用颜色?例如,**hello**翻译成<strong>hello</strong>.我怎样才能使重组(rst2html.py)翻译的东西<font color="####">text</font>

我想过..raw :: html,但它引入了空白行.我想插入没有空行的HTML标签.

html restructuredtext rst2html.py

28
推荐指数
3
解决办法
2万
查看次数

将CSS类添加到RST中的链接

我的.rst文件中有一个链接

Click me! <../link_reference.html>
Run Code Online (Sandbox Code Playgroud)

这就像点击我一样!但是,我想为它添加一个CSS类,所以它看起来像Click me!.

我将下面的行添加到我的RST文件的顶部:

role:: example
Run Code Online (Sandbox Code Playgroud)

然后我改变了我的链接,看起来像这样:

例: Click me! <../link_reference.html>

但是,这个RST呈现为<span class="problematic">:example:Click me!<../ link_reference.html> _</span>代替.:(

我认为使用.. role ::是在RST中将CSS添加到文本的最佳方式.我需要为链接做些什么特别的事吗?

html css restructuredtext python-sphinx

6
推荐指数
1
解决办法
897
查看次数

标签 统计

html ×2

restructuredtext ×2

css ×1

python-sphinx ×1

rst2html.py ×1