restructuredtextstrikethroughdocutils

ReST strikethrough


Is it possible to strike text through in Restructured Text?

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


Solution

  • 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`
    

    Then in my css file I have an entry:

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