Add <sup> and <sub> support to content (#808)

* add sup and sub support to content

* tweak, add subscript example
This commit is contained in:
lorin 2017-06-25 01:18:52 +02:00 committed by Jeremy Thomas
parent fcdb86bb1b
commit 63c80625be
2 changed files with 7 additions and 4 deletions

View File

@ -31,7 +31,7 @@ doc-subtab: content
{% capture content_example %}
<div class="content">
<h1>Hello World</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque.</p>
<p>Lorem ipsum<sup><a>[1]</a></sup> dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque. Sub<sub>script</sub> works as well!</p>
<h2>Second level</h2>
<p>Curabitur accumsan turpis pharetra <strong>augue tincidunt</strong> blandit. Quisque condimentum maximus mi, sit amet commodo arcu rutrum id. Proin pretium urna vel cursus venenatis. Suspendisse potenti. Etiam mattis sem rhoncus lacus dapibus facilisis. Donec at dignissim dui. Ut et neque nisl.</p>
<ul>

View File

@ -74,6 +74,9 @@
padding: 1.25em 1.5em
white-space: pre
word-wrap: normal
sup,
sub
font-size: 70%
table
width: 100%
td,