numere-org / NumeRe

Framework for numerical computations, data analysis and visualisation
https://www.numere.org
GNU General Public License v3.0
20 stars 7 forks source link

Create a markdown table export #213

Closed numeredev closed 2 months ago

numeredev commented 6 months ago

DESCRIPTION

What does your feature request improve on? Please describe. It is possible to export a table to many formats but not into markdown, which is tedious if you want to embed a larger table into such a document type.

Describe the solution you'd like Create a markdown table export either via supporting export TABLE() -file=FILE.md or via a menu option within the table viewer or possibly even both.

Additional context Add any other context or screenshots about the feature request here.

(Do not write below this line)


DEVS' SECTION

ANALYSIS

Should not be too hard. It might be reasonable to achieve it via creating a MarkDown implementation for the GenericFile class, which can only export but not (necessary) load. Adding the corresponding file masks to be able to select the markdown export is kind of straightforward.

IMPLEMENTATION STEPS

(see also our Wiki for implementation guidelines)

DOCUMENTATION STEPS

(see also our Wiki for further information)

PULL REQUEST

numeredev commented 2 months ago

Note that cells containing newline chars have to be encoded as well.