You can create markdown tables by concating some strings together like so.
The syntax for markdown tables is here.
Foo | Bar | Baz |
---|---|---|
foo | bar | 12.00 |
quz | quux | 1.0 |
This means you can also get data out of a tablecloth/tech.ml dataset and format it too.
Foo | Bar | Baz |
---|---|---|
foo0 | bar0 | 12.0 |
foo1 | bar1 | 1.0 |
foo2 | bar2 | 1.01 |
You can also use p/dataset->str
with {:print-line-policy:markdown}
You need to strip out the table name as well if you don’t want that.
You can do that with this lovely multiline java regular expression:
#"^(?s).+\n\n(.+)"
The (?s)
at the front makes it multiline.
Foo | Bar | Baz |
---|---|---|
foo0 | bar0 | 12.00 |
foo1 | bar1 | 1.00 |
foo2 | bar2 | 1.01 |