format stripping feature? #3375
-
Hi, Any chance we could get back from Rich the string stripped of its formatting substrings? As I understand, Rich's The closest existing discussion may be #2926, which is a little related but different. It might be the same as #2032, just not in the context of using the logger class. Admiteddly this is a bit like a logging scenario where you would not want the Rich-specific formatting markdown to appear in the log, whereas the messages are originally created in the application with Rich formatting in them. Thanks for Rich and thanks for your opinion! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Something like this should do it. Text.from_markup("[magenta]Hello world!").plain |
Beta Was this translation helpful? Give feedback.
Something like this should do it.