edit: thins have changed with list item 2, but this is still valid. There even is a todo about this in LabelContent.
ListItem accepts a WidgetText as input, so the formatting should happen there so that it doesn't the ListItem logic. Some helper might be needed to "prepare" the WidgetText though, e.g. to honour the re_ui::LabelStyle, etc.
edit: thins have changed with list item 2, but this is still valid. There even is a todo about this in
LabelContent.ListItemaccepts aWidgetTextas input, so the formatting should happen there so that it doesn't theListItemlogic. Some helper might be needed to "prepare" theWidgetTextthough, e.g. to honour there_ui::LabelStyle, etc.