ReST删除线 [英] ReST strikethrough

查看:146
本文介绍了ReST删除线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在重组文本"中删除文本?

Is it possible to strike text through in Restructured Text?

例如转换为HTML时呈现为<strike>标签的内容,例如: ReSTructuredText

Something that for example renders as a <strike> tag when converted to HTML, like: ReSTructuredText

推荐答案

正如VilleSäävuori所建议的,我更好地检查了文档,并决定添加这样的删除线:

I checked the docs better, as suggested by Ville Säävuori, and I decided to add the strikethrough like this:

.. role:: strike
    :class: strike

在文档中,可以按以下方式应用:

In the document, this can be applied as follows:

:strike:`This text is crossed out`

然后在我的css文件中,有一个条目:

Then in my css file I have an entry:

.strike {
  text-decoration: line-through;
}

这篇关于ReST删除线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆