Skip to content
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

Closed
bo-ku-ra opened this issue Dec 29, 2022 · 4 comments
Closed

Proposal: shape:table (inspire html<table>tag) #551

bo-ku-ra opened this issue Dec 29, 2022 · 4 comments

Comments

@bo-ku-ra
Copy link
Contributor

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>

datecount
2022/12/3110
2023/1/1100
total110
@cyborg-ts cyborg-ts added this to D2 Dec 29, 2022
@alixander
Copy link
Collaborator

we plan to support markdown tables, which should cover your use case: #160

@bo-ku-ra
Copy link
Contributor Author

bo-ku-ra commented Dec 29, 2022

i want to eliminate 'dummy' lines. please improve d2! @alixander

@alixander
Copy link
Collaborator

#2221

@github-project-automation github-project-automation bot moved this to Done in D2 Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants