This PR creates an extension that allows \text{}
and other similar macros to process text-mode macros within their argument. This has been a long-standing request; see #1736 (closed), #1758 (closed), #1770 (closed), #1473 (closed), #243 (closed), #346 (closed).