onMarkup method
Implementation
@override
HypertextSpan onMarkup(List<HypertextSpan>? children, MarkupContext ctx) {
FontWeight? weight = optFontWeight(ctx);
TextStyle? style;
if (weight != null) style = TextStyle(fontWeight: weight);
return HypertextTextSpan(children: children, style: style);
}