https://bugs.documentfoundation.org/show_bug.cgi?id=94978

--- Comment #4 from Vadim <vad.libreoff...@vad.cx> ---
I'd like to explain why Calc -> CSV -> Markdown is not the same and there's
added value in creating a direct Markdown output.

First, CSV is a plain text format. Literal plain text, without formatting. By
contrast, Markdown does support basic formatting like bold, italic, links etc.
Second, the content of table cells can be aligned left/center/right in
Github-flavored Markdown.
Both these features are lost when dealing with CSV exports.

Third, Markdown can (and should be!) viewed as a document format. CSV is only
good for single tables, however Markdown allows to create semantic sections
thus allowing to export all/multiple sheets of a single Calc document.

For example, if the document contains "Sheet1", "Sheet2", an example Markdown
output could look like this (unless the user selected a heading-less single
sheet export):

----

# Sheet1

// table contents here

# Sheet2

// table contents here 2

----

What's the current behaviour with CSV? To only export the current sheet
(acceptable) and to show a warning message:

"Warning saving the document table:
Only the active sheet was saved."

----

The advocates of "Commonmark" will tirelessly argue, that Markdown does not
support tables... well their limited subset of the Markdown-family does not.
Most (popular) applications support the tables and it is reasonable for users
to expect them.

Because the tables are so hard to edit in text in Markdown, the "proper tool
for the job" is a spreadsheet program like Calc. The only missing step is an
easy export, to complete the workflow for an increased productivity.

Finally, there are Markdown extensions that even support "merged cells" but I
would consider such functionality niche and to not be required to fulfill the
needs of >95% of users.

Reference links:
Github: https://github.github.com/gfm/#tables-extension-
Reddit: https://www.reddit.com/wiki/markdown/#wiki_tables
Stackoverflow (based on Github): https://stackoverflow.com/markdown#link-tables

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to