terrastruct / d2

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

How to Multiline? #2088

Closed drskoolie closed 2 months ago

drskoolie commented 2 months ago

I have really long strings that I want to separate over new lines. How do I do that?

x: """
My Long String
"""

This doesn't work

bo-ku-ra commented 2 months ago

could you read the d2 docs. https://d2lang.com/tour/troubleshoot/#the-text-is-rendered-too-widelong https://d2lang.com/tour/text/#standalone-text-is-markdown