This Finsweet code adds a span to rich text when the class is wrapped in angle brackets on both sides of the text intended to be styled. The effect will not appear in the Webflow Designer, but will appear on the live site.
Tip: Webflow automatically changes class names to lowercase & replaces spaces with hyphens in the CSS stylesheet, so Text - Primary would actually be text---primary in the stylesheet. This script requires the stylesheet format of classes referenced, rather than the display format.
Tip: Another workaround for cases where you need a class applied within a rich text block is to create a standard text block, create a span within that text block, add a class, & then copy & paste that text into the rich text block. This approach will be appear as intended in the Webflow Designer.