diff --git a/lib/src/widgets/text_line.dart b/lib/src/widgets/text_line.dart index c557ee2c..4093409a 100644 --- a/lib/src/widgets/text_line.dart +++ b/lib/src/widgets/text_line.dart @@ -237,7 +237,17 @@ class TextLine extends StatelessWidget { final backgroundColor = stringToColor(background.value); res = res.merge(TextStyle(backgroundColor: backgroundColor)); } - + if (styleBuilder != null) { + textNode.style.attributes.keys.forEach((key) { + final attribute = + Attribute.fromKeyValue(key, textNode.style.attributes[key]); + if (attribute == null) { + ///Unkown Attribute + final customStyle = styleBuilder?.call(attribute!); + if (customStyle != null) res = res.merge(customStyle); + } + }); + } return TextSpan(text: textNode.value, style: res); }