content = parse_inline_desc(state, i).strip()
if content: out.parsed += '<code>{}</code>'.format(content)
- elif i.tag in ['emphasis', 'bold', 'small', 'superscript', 'subscript', 'strike']:
+ elif i.tag in ['emphasis', 'bold', 'small', 'superscript', 'subscript', 'strike', 's', 'del']:
mapping = {'emphasis': 'em',
'bold': 'strong',
'small': 'small',
'superscript': 'sup',
'subscript': 'sub',
- 'strike': 's'}
+ 'strike': 's',
+ 's': 's',
+ 'del': 's'}
content = parse_inline_desc(state, i).strip()
if content: out.parsed += '<{0}{1}>{2}</{0}>'.format(
<blockquote><p>A blockquote.</p></blockquote><pre>Preformatted text.
</pre><p>Paragraph<br />with<br />explicit<br />line<br />breaks.</p><section id="section"><h2><a href="#section">Page section</a></h2><pre>Differently
preformatted
-text.</pre><ul><li>Unordered</li><li>list</li><li>of<ul><li>nested</li><li>items</li></ul></li><li>and back</li></ul><ol><li>Ordered</li><li>list</li><li>of<ol><li>nested</li><li>items</li></ol></li><li>and back</li></ol><p><a name="an-anchor"></a> This is a <code>typewriter text</code>, <em>emphasis</em>, <strong>bold</strong> and <s>strikethrough</s>. <em>Emphasis with <code>typewriter</code> and <strong>bold</strong> nested.</em> <a href="http://google.com">http:/<wbr />/<wbr />google.com</a> and <a href="http://google.com">URL</a>. <small>Small <em>text</em>.</small> En-dash – and em-dash —. Reference to a <a href="index.html#section" class="m-doc">Page section</a>. Named reference with special characters in title: <a href="index.html#section" class="m-doc">» Warnings «</a>. Reference with escaped characters in title: <a href="index.html#an-anchor" class="m-doc"><anchor></a>.</p><p>2<sup>nd</sup> is L<sub>∞</sub> ∀ ∇ π ℜ ℑ This costs no $, €, £, ¥ or ¤.</p><p>Empty elements:</p><pre></pre><hr/><p>Above is a horizontal line.</p></section>
+text.</pre><ul><li>Unordered</li><li>list</li><li>of<ul><li>nested</li><li>items</li></ul></li><li>and back</li></ul><ol><li>Ordered</li><li>list</li><li>of<ol><li>nested</li><li>items</li></ol></li><li>and back</li></ol><p><a name="an-anchor"></a> This is a <code>typewriter text</code>, <em>emphasis</em>, <strong>bold</strong> and <s>strikethrough</s> in <s>various</s> <s>ways</s>. <em>Emphasis with <code>typewriter</code> and <strong>bold</strong> nested.</em> <a href="http://google.com">http:/<wbr />/<wbr />google.com</a> and <a href="http://google.com">URL</a>. <small>Small <em>text</em>.</small> En-dash – and em-dash —. Reference to a <a href="index.html#section" class="m-doc">Page section</a>. Named reference with special characters in title: <a href="index.html#section" class="m-doc">» Warnings «</a>. Reference with escaped characters in title: <a href="index.html#an-anchor" class="m-doc"><anchor></a>.</p><p>2<sup>nd</sup> is L<sub>∞</sub> ∀ ∇ π ℜ ℑ This costs no $, €, £, ¥ or ¤.</p><p>Empty elements:</p><pre></pre><hr/><p>Above is a horizontal line.</p></section>
</div>
</div>
</div>
@anchor an-anchor
-This is a `typewriter text`, *emphasis*, **bold** and ~~strikethrough~~.
-<em>Emphasis with <tt>typewriter</tt> and <strong>bold</strong> nested.</em>
-http://google.com and [URL](http://google.com). <small>Small *text*.</small>
-En-dash -- and em-dash ---. Reference to a @ref section. Named reference with
-special characters in title: @ref section "» Warnings «".
-Reference with escaped characters in title: @ref an-anchor "<anchor>".
+This is a `typewriter text`, *emphasis*, **bold** and ~~strikethrough~~ in
+<s>various</s> <del>ways</del>. <em>Emphasis with <tt>typewriter</tt> and
+<strong>bold</strong> nested.</em> http://google.com and
+[URL](http://google.com). <small>Small *text*.</small> En-dash -- and em-dash
+---. Reference to a @ref section. Named reference with special characters in
+title: @ref section "» Warnings «". Reference with escaped
+characters in title: @ref an-anchor "<anchor>".
2<sup>nd</sup> is L<sub>∞</sub> ∀ ∇ π ℜ ℑ
This costs no $, €, £, ¥ or ¤.