Every time I type a character in an input field, I parse the expression so that I get:
Text inputs do not support styled content. End of story.
A common solution is to use contenteditable instead.