Thanks Jay! It looks like this will work for character-based sequences but not non-character formatting such as tab indents.
Use cases: we have some older writers on our platform who still treat a keyboard like a typewriter and hit the space bar 5 times for an indent. Other writers are copying and pasting with a tab indent. Both of these leave us with what discourse interprets as markup. (If I’m using the term correctly.)
Found a workaround on the theme component side where we got the css to essentially override the markup formatting, which we never need for our specific use case.
Cheers and thanks for your help!