问题
Is it possible to make text strikethrough in the sphinx documentation generator?
回答1:
I've done this.
Require a .CSS in your conf.py
html_style = 'mydoc.css'
In the _static/mydoc.css
, use something like this
@import url("default.css");
span.strikethrough { text-decoration: line-through; }
In the document, do this.
.. role:: strikethrough
make text :strikethrough:`strikethrough` in the sphinx
来源:https://stackoverflow.com/questions/4410100/how-to-make-text-strikethough-in-sphinx