如何在ReStructured Text中使用颜色?例如,**hello**翻译成<strong>hello</strong>.我怎样才能使重组(rst2html.py)翻译的东西 成<font color="####">text</font>?
我想过..raw :: html,但它引入了空白行.我想插入没有空行的HTML标签.
我的.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添加到文本的最佳方式.我需要为链接做些什么特别的事吗?