We have introduced a new function to make it much easier to generate markdown tables from your data. Just pass in an array of objects into the function like so:
OBJECTS_TO_MARKDOWN_TABLE([
{ "name": "John Smith", "age": 30},
{ "name": "Jane Doe", "age": 25},
{ "name": "Joe Schmoe", "age": 40}
])and it will generate a markdown table string:
| name | age |
| --- | --- |
| John Smith | 30 |
| Jane Doe | 25 |
| Joe Schmoe | 40 |The function also takes an optional headers array to include only certain headers in the table output.
For more information, see our documentation.