From 8b791c7ed47d06560ce9940c9d45e169990fb1cf Mon Sep 17 00:00:00 2001 From: Gavin Nishizawa Date: Wed, 12 Apr 2023 20:19:36 -0700 Subject: [PATCH] don't increase font size for md text if container --- d2graph/d2graph.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d2graph/d2graph.go b/d2graph/d2graph.go index eb514159c..4065fd644 100644 --- a/d2graph/d2graph.go +++ b/d2graph/d2graph.go @@ -561,7 +561,7 @@ func (obj *Object) Text() *d2target.MText { } if obj.OuterSequenceDiagram() == nil { - if obj.IsContainer() { + if obj.IsContainer() && obj.Attributes.Shape.Value != "text" { fontSize = obj.Level().LabelSize() } } else {