Text and equation-wrap in \fbox and \colorbox support in Katex with markdown tiddlers

Dear All,

Can one allow for wrapping text inside \fbox and \colorbox in Katex plugin? As shown in the figure, I want to avoid the text going out of visible area. I am especially interested to make it work in the markdown tiddlers working with markdown plugin.