How to make text strikethough in Sphinx

◇◆丶佛笑我妖孽 提交于 2019-12-13 12:13:54

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!