You can't embed HTML inside a {rotate}, so we'll have to do this the long way! You can use
text replacement to get the same effect.
First, add the CSS. We'll be using <span> elements instead of <a> tags, so the CSS just needs to be:
.class1 {color:red;}
.class2 {color:green;}
.class3 {color:yellow;}
This needs to be added to style.template.css. Here's the full file - just save it as style.template.css in the same directory as your .squiffy file:
.class1 {color:red;}
.class2 {color:green;}
.class3 {color:yellow;}
a.squiffy-link
{
text-decoration: underline;
color: Blue;
cursor: pointer;
}
a.squiffy-link.disabled
{
text-decoration: inherit;
color: inherit !important;
cursor: inherit;
}
a.squiffy-header-link
{
text-decoration: underline;
color: Blue;
cursor: pointer;
}
div#squiffy-container
{
max-width: 700px;
margin-left: auto;
margin-right: auto;
font-family: Georgia, serif;
}
div#squiffy-header
{
font-size: 14px;
text-align: right;
}
div#squiffy-output
{
font-size: 18px;
}
hr {
border: 0;
height: 0;
border-top: 1px solid rgba(0, 0, 0, 0.1);
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
margin-top: 16px; margin-bottom: 16px;
}
Here's a test squiffy file that uses the above:
[[one]]:
{label:1=[<span class="class1">one</span>](@replace 1=two)}
[[two]]:
{label:2=[<span class="class2">two</span>](@replace 1=three)}
[[three]]:
{label:3=[<span class="class3">three</span>](@replace 1=one)}
Kind of clunky, but it works.