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

Should CiceroMark allow tables? #472

Open
jeromesimeon opened this issue Nov 1, 2019 · 1 comment
Open

Should CiceroMark allow tables? #472

jeromesimeon opened this issue Nov 1, 2019 · 1 comment

Comments

@jeromesimeon
Copy link
Member

jeromesimeon commented Nov 1, 2019

Table are often found in contracts. Although they are not natively supported in CommonMark, it would be nice to have a way to create tables in AccordProject templates/contracts.

{{#table products}}
  {{#cell "Name"}}{{name}}{{/cell}}
  {{#cell "Code"}}{{id}}{{/cell}}
{{/table}}

Those are rendered as markdown. From:

{ products: [
    { name: "Sponge", id: 1312 },
    { name: "Bleach", id: 341 }
  ] }

to

| Name | Code |
|---|---|
| "Sponge" | 1312 |
| "Bleach" | 341 |
@jeromesimeon
Copy link
Member Author

This issue is inherited from #392

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant