On Wed, Apr 10, 2013 at 11:35:21AM -0700, Mike Gran wrote:
> Hi-
>
> I've been working with 5.1, and it works great for me.
> It fixes an old problem about images embedded inline with
>
> in HTML output.
> Here's a crazy feature request... A new command @span.
>
>
> @span{classname, text}
>
> For HTML output only, it would expand to
>
> <span class="classname">text</span>
>
> For everything else, it would expand to just the text.
>
> This would allow me to do fun tricks via CSS3 without
> compromising the intentional formatting language concept.
What about using a user defined macro?
Something like (untested)
@ifhtml
@macro span{classname, text}
@inlinefmt{html, <span class="\classname\">\text\<span>}
@end macro
@end ifhtml
@ifnothtml
@macro span{classname, text}
\text\
@end macro
@end ifnothtml
--
Pat