terrastruct / d2

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

Containers with language-formatted titles are not rendered properly (or consistently) #476

Open cosmojg opened 1 year ago

cosmojg commented 1 year ago

See title. The biggest offenders appear to be Markdown and Latex. This happens regardless of the layout engine used.

Random Examples Using TALA, Dagre, and ELK:

With defendants: |md DEFENDANTS | { on line 8 (TALA):

image

With defendants: |md # DEFENDANTS | { on line 8 (TALA):

image

With defendants: |md ***DEFENDANTS*** | { on line 8 (Dagre):

image

With defendants: |latex DEFENDANTS | { on line 8 (Dagre):

image

With defendants: |go //DEFENDANTS | { on line 8 (ELK):

image

With defendants: |python DEFENDANTS = ("DEFENDANTS" * 4) | { on line 8 (ELK):

image

With defendants: DEFENDANTS { on line 8 (TALA):

image

With defendants: DEFENDANTS { on line 8 (Dagre):

image

With defendants: DEFENDANTS { on line 8 (ELK):

image
alixander commented 1 year ago

https://discord.com/channels/976899413542830181/1093983745670922270/1094540010994282646