2.5.13 base.text.sub Superscript / Subscript
The <sup>
element represents a superscript and the <sub>
element
represents a subscript.
Example
Mlle Gwendoline wrote the equation
f(x, n) = log4xn
.
Markup: base/text/text-sub.twig
<span class="xml"><span class="hljs-tag"><<span class="hljs-name">abbr</span>></span>M<span class="hljs-tag"><<span class="hljs-name">sup</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"</span></span></span><span class="hljs-template-variable">{{modifier_class}}</span><span class="xml"><span class="hljs-tag"><span class="hljs-string">"</span>></span>lle<span class="hljs-tag"></<span class="hljs-name">sup</span>></span><span class="hljs-tag"></<span class="hljs-name">abbr</span>></span> Gwendoline wrote the equation <span class="hljs-tag"><<span class="hljs-name">code</span>></span>f(x, n) = log<span class="hljs-tag"><<span class="hljs-name">sub</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"</span></span></span><span class="hljs-template-variable">{{modifier_class}}</span><span class="xml"><span class="hljs-tag"><span class="hljs-string">"</span>></span>4<span class="hljs-tag"></<span class="hljs-name">sub</span>></span>x<span class="hljs-tag"><<span class="hljs-name">sup</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"</span></span></span><span class="hljs-template-variable">{{modifier_class}}</span><span class="xml"><span class="hljs-tag"><span class="hljs-string">"</span>></span>n<span class="hljs-tag"></<span class="hljs-name">sup</span>></span><span class="hljs-tag"></<span class="hljs-name">code</span>></span>.
</span>
Source:
base/text/_text.scss
, line 211