-
Notifications
You must be signed in to change notification settings - Fork 444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support markdown tables in objects #1794
Comments
You can just repurpose tables for this: https://d2lang.com/tour/sql-tables/ or just use JSON blocks directly: https://play.d2lang.com/?script=qrBSqMkqzs_jqlbITS0qqrRSSM4oyiwuyU0sVqjlquECBAAA__8%3D& Does that work? @jfudickar |
I thought about that before, but sadly not. But I need the option to have more then two columns. One other example you can see here: https://github.com/jfudickar/json2puml/blob/main/documentation/images/spacex_launch/spacex_launch_latest.launch-crew-rocket.png |
In principle yes, I will have to look into. |
Did you have an idea how I can make the height of the lines smaller? |
i want to write a table in Markdown because I find Markup problematic on D2. |
Tables will fall into markdown so this issue continues here: #2220 |
I want to document content of json files with D2.
In plantuml I can use something like this:
`@startuml
class "rocket Falcon 1" as 5e9d0d95eda69955f709d1eb << (R,orange) hardware >> {
rocket
|= attribute |= value |
| active | false |
| boosters | 0 |
| company | SpaceX |
| cost_per_launch | 6700000 |
| country | Republic of the Marshall Islands |
| first_flight | 2006-03-24 |
| id | 5e9d0d95eda69955f709d1eb |
| name | Falcon 1 |
| stages | 2 |
| success_rate_pct | 40 |
| type | rocket |
}
class "payload" as payload_5e9d0d95eda69955f709d1eb_1 << (P,orange) hardware >> {
payload
|= attribute |= value |
| option_1 | composite fairing |
}
5e9d0d95eda69955f709d1eb --> payload_5e9d0d95eda69955f709d1eb_1:payloads
@enduml`
In D2 there is as far as I can see in the moment an option to use markdown tables
This would be very helpful.
Further Idea's can be found here : https://github.com/jfudickar/json2puml
The text was updated successfully, but these errors were encountered: