How to make text strikethough in Sphinx
Is it possible to make text s开发者_JAVA技巧trikethrough in the Sphinx documentation generator?
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
精彩评论