Skip to content
Myles Braithwaite edited this page Jan 19, 2016 · 1 revision

Surrounded two or more consecutive capital letters, perhaps with interspersed digits and/or periods, in a <span> with a styled class.

Input:

<p>Today I went {{ "SCUBA" | caps }} driving with my friend from {{ "I.B.M" | caps }}.</p>

Output:

<p>Today I went <span class="caps">SCUBA</span> driving with my friend from <span class="caps">I.B.M.</span>.</p>

Example CSS:

.caps {
    font-size: .9rem;
    text-transform: uppercase;
}
Clone this wiki locally