diff --git a/d2graph/d2graph.go b/d2graph/d2graph.go index 35de7648a..6bd17ca84 100644 --- a/d2graph/d2graph.go +++ b/d2graph/d2graph.go @@ -1445,7 +1445,7 @@ func (g *Graph) Texts() []*d2target.MText { for _, obj := range g.Objects { if obj.Attributes.Label.Value != "" { text := obj.Text() - if capsLock && obj.Class == nil && obj.SQLTable == nil { + if capsLock { text.Text = strings.ToUpper(text.Text) } texts = appendTextDedup(texts, text)