Skip to content
Discussions/Outreach/Daml Studio: Get Script Results as Markdown TableForum ↗

Daml Studio: Get Script Results as Markdown Table

Outreach4 posts357 views3 likesLast activity May 2022
ST
StephenOTTOP
May 2022

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.

MA
Mate_Varga
May 2022

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:

GitHub

GitHub - pstaender/csv2md: Converts csv data to markdown tables

Converts csv data to markdown tables. Contribute to pstaender/csv2md development by creating an account on GitHub.

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

ST
StephenOTT
May 2022

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

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

AK
akrmn
May 2022

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”.

← Back to Discussions