pub fn rich_text( text: String, attrs_list: AttrsList, text_fn: impl Fn() -> (String, AttrsList) + 'static, ) -> RichText