Reimplemented inline-formulas using an annotation based mechanism.

This reduces fragmentation of text elements, as inline formulas are attached
to a plain-text fragment ('{{inline-formula}}').