emphasisStyle method
Returns a styling function for emphasized text.
If emphasis is not set, returns a bold-only style (matching original behavior).
Implementation
String Function(String) emphasisStyle(Renderer renderer) {
final color = emphasis;
return (text) {
final style = Style()
..colorProfile = renderer.colorProfile
..hasDarkBackground = renderer.hasDarkBackground
..bold();
if (color != null) {
style.foreground(color);
}
return style.render(text);
};
}