terrastruct / d2

D2 is a modern diagram scripting language that turns text to diagrams.
https://d2lang.com
Mozilla Public License 2.0
16.59k stars 417 forks source link

font style options for class/table #2109

Open alixander opened 1 week ago

alixander commented 1 week ago
Square: {
  shape: class

  +side: int

  +Area(): int {
   # This should work
    style.bold: true
  }
  +Perimeter(): int
}

see https://github.com/terrastruct/d2/discussions/2106

bo-ku-ra commented 1 week ago

https://github.com/terrastruct/d2/issues/1984