diff --git a/src/FormatUtil.rs b/src/FormatUtil.rs index 0d4e189f..c51cc935 100644 --- a/src/FormatUtil.rs +++ b/src/FormatUtil.rs @@ -87,7 +87,7 @@ pub fn format_labels(ctx: CallContext) -> Result { html.push_str(" { - write!(html, " data-mx-bg-color=\"{}\"", color).unwrap(); + write!(html, " data-mx-bg-color=\"#{}\"", color).unwrap(); // Determine the constrast let color_rgb = parse_rgb(color)?; let contrast_color;