-
Notifications
You must be signed in to change notification settings - Fork 448
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
Proposal: shape:table (inspire html<table>tag) #551
Comments
we plan to support markdown tables, which should cover your use case: #160 |
i want to eliminate 'dummy' lines. please improve d2! @alixander |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Proposal;
ex:{
shape:table
<- new
#Like MS Excel/LibreOffice Calc
=A1:{ #Reserved-word: /=[a-z]+[0-9]+/i )
value: "date";
style.fill:pink;
}
=B1:{ #Like Exce1
value: "count";
style.fill:pink;
}
=A2:{value:'2022/12/31'}
=B2:{value:10; align:right}
=A3:{value:'2023/1/1'}
=B3:{value:100}
=A4:{value:'total'; align:center}
=B4:{value:110; style-font-color:red}
}
Expected; (view it as html)
<table border="1" cellspacing="0" cellpadding="0">
<tr><td bgcolor=pink>date</td><td bgcolor=pink>count</td></tr>
<tr><td>2022/12/31</td><td align=right>10</td></tr>
<tr><td>2023/1/1</td><td>100</td></tr>
<tr><td align=center>total</td><td><font color="red">110</font></td></tr>
</table>
The text was updated successfully, but these errors were encountered: