Modifying text before rendering
In my application there are different use cases where it would be good if I could modify the text before rendering without actually altering the textflow. For example if you want to implement faux small caps by using a style name (example: <p styleName="fauxSmallCaps">Heading</p>). So it would be nice if you got the paragraph as a text flow to export a clean version of it, but if you render it it would be something like <p>H<span fontSize="12">EADING</span></p> so that it would be rendered correctly.
It would be also a nice way to create automatically numbered lists or headings, but then it would be necessary to create a type of text that isn't selectable and changeable.
Is there a way to implement something like this without using hacks like a hidden TextFlow that contains the clean code and/or layering another TextFlow on top of the current one?
