Daml Studio: Get Script Results as Markdown Table

Script results show something like this in the table:

But if you copy it into a markdown file you get something like:

It would be great if there was an option to get the table in markdown format so it can be easily copied into other sites such as GitHub issues, Readme files, etc.

Hi @StephenOTT,

Other than the disclosure column names - change new line separation to TABs between those - what you get is a CSV with TAB separators that can be easily converted to Markdown table with a tool like: CSV to Markdown Table Generator — Donat Studios

You can also find a command line utility/TS library here:

Please note that both of these are not generally used by DA or me, so be careful utilizing them.

Would you be open to a PR to add the support into the studio?

something like: “format: tab csv, markdown, html”

Would you be open to a PR to add the support into the studio?

something like: “format: tab csv, markdown, html”

Hi @StephenOTT. We don’t have plans to add markdown output ourselves, but we would definitely appreciate your contributions. Please review our contributing guidelines (daml/CONTRIBUTING.md) and our Code of Conduct (daml/CODE_OF_CONDUCT.md). Having done that, we would prefer if you first opened a feature request issue explaining the problem (in this case the text of your post is more than fine) and your proposed solution, so you don’t have to spend your time working on a PR that “fixes the wrong thing”.

3 Likes