2

是否可以在 Sphinx 文档生成器中添加文本删除线?

4

1 回答 1

10

我已经做到了。

在你的 conf.py 中需要一个 .CSS

html_style = 'mydoc.css'

在中_static/mydoc.css,使用类似这样的东西

@import url("default.css");

span.strikethrough { text-decoration: line-through; }

在文档中,执行此操作。

 ..  role:: strikethrough

 make text :strikethrough:`strikethrough` in the sphinx
于 2010-12-10T15:28:52.203 回答