Dil*_*rix 6 restructuredtext python-sphinx
在我的custom.css文件中,我有,
.bold {
font-weight: bold;
}
.red {
color:red;
}
Run Code Online (Sandbox Code Playgroud)
在我的_.rst文件中,
.. role:: bold
.. role:: red
Run Code Online (Sandbox Code Playgroud)
但是如果我尝试嵌套/复合它们,只有最外面的角色生效,例如
:bold:`:red:`This is only bold``
这只是大胆的
有没有办法在不定义新的(组合)角色的情况下结合这些效果?
小智 2
您可以使用自定义 css 类指令:
.. cssclass:: boldred
bold red text
Run Code Online (Sandbox Code Playgroud)
并更新 css 以格式化粗体类
| 归档时间: |
|
| 查看次数: |
171 次 |
| 最近记录: |