HTML writer: Use <del>
for strikeout.
This commit is contained in:
parent
1c521519d9
commit
bfa5ca01bc
2 changed files with 2 additions and 2 deletions
|
@ -546,7 +546,7 @@ inlineToHtml opts inline =
|
|||
$ strToHtml str
|
||||
Right h -> return h
|
||||
(Strikeout lst) -> inlineListToHtml opts lst >>=
|
||||
return . (H.span ! A.style "text-decoration: line-through;")
|
||||
return . H.del
|
||||
(SmallCaps lst) -> inlineListToHtml opts lst >>=
|
||||
return . (H.span ! A.style "font-variant: small-caps;")
|
||||
(Superscript lst) -> inlineListToHtml opts lst >>= return . H.sup
|
||||
|
|
|
@ -424,7 +424,7 @@ Blah
|
|||
<p><strong><em>This is strong and em.</em></strong></p>
|
||||
<p>So is <strong><em>this</em></strong> word.</p>
|
||||
<p>This is code: <code>></code>, <code>$</code>, <code>\</code>, <code>\$</code>, <code><html></code>.</p>
|
||||
<p><span style="text-decoration: line-through;">This is <em>strikeout</em>.</span></p>
|
||||
<p><del>This is <em>strikeout</em>.</del></p>
|
||||
<p>Superscripts: a<sup>bc</sup>d a<sup><em>hello</em></sup> a<sup>hello there</sup>.</p>
|
||||
<p>Subscripts: H<sub>2</sub>O, H<sub>23</sub>O, H<sub>many of them</sub>O.</p>
|
||||
<p>These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.</p>
|
||||
|
|
Loading…
Reference in a new issue