Bug 168300 - Export a table with merged cells to Markdown doesn't work
Summary: Export a table with merged cells to Markdown doesn't work
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
26.2.0.0 alpha0+ master
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Markdown
  Show dependency treegraph
 
Reported: 2025-09-06 15:31 UTC by Roman Kuznetsov
Modified: 2025-09-07 18:29 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Kuznetsov 2025-09-06 15:31:33 UTC
Description:
After Miklos's patch for bug 167564 Wtiter can export tables to markdown format, but...

Export a table with merged cells to Markdown doesn't work. 
Result .md file contains a table, but all merged cells became splitted

Steps to Reproduce:
1. Create a table with merged cells in Writer
2. Export it to Markdown format (as .md file)
3. Open the .md file and look at the table inside -> there are no any merged cells 

Actual Results:
Export a table with merged cells to Markdown doesn't work

Expected Results:
Export a table with merged cells to Markdown works


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 4607c8d67ec3583c5a3e017bf1fa6fc7514a1674
CPU threads: 16; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Vulkan; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL threaded
Comment 1 m_a_riosv 2025-09-06 22:23:12 UTC

*** This bug has been marked as a duplicate of bug 165590 ***
Comment 2 Buovjaga 2025-09-07 18:29:28 UTC
Bug 165590 is for import.

However, GitHub Flavored Markdown used by md4c (and consumed by numerous apps) does not support merged (colspan) cells: https://github.github.com/gfm/#tables-extension-

As you can see, you may create a Frankenstein's monster type of solution: https://stackoverflow.com/questions/23571724/github-markdown-colspan

...but the cleanest way in this case might be to just export the table fully in HTML, if there are any merged cells.