Bug 167564 - Add a table export to markdown format
Summary: Add a table export to markdown format
Status: VERIFIED FIXED
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: target:26.2.0
Keywords:
Depends on:
Blocks: Markdown
  Show dependency treegraph
 
Reported: 2025-07-18 08:22 UTC by Roman Kuznetsov
Modified: 2025-09-24 10:39 UTC (History)
0 users

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-07-18 08:22:08 UTC
Description:
Add a table export to markdown format

Current implementation allows to export only outline and text from LibreOffice to markdown

Steps to Reproduce:
1. Open any Writer document contains a table 
2. Try to save it as markdown file
3. Open the markdown file -> it has no any table inside

Actual Results:
LibreOffice saves no any table to markdown

Expected Results:
LibreOffice save all table to markdown


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 53a9cee01759ce54c4ee50468958531a360640f9
CPU threads: 16; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Vulkan; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: CL threaded
Comment 1 Commit Notification 2025-09-02 19:39:29 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/f073d733568d3b635ac8b2c3a5081afd679b4915

tdf#167564 sw markdown export: handle tables

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 2 Miklos Vajna 2025-09-03 07:08:59 UTC
I would suggest to close this and if a related problem is found, then open a new, follow-up bugreport. Is that OK for you, Roman? Thanks.
Comment 3 Roman Kuznetsov 2025-09-03 22:43:51 UTC
Yes, let's close as FIXED. Thanks Miklos for implementing it
Comment 4 Roman Kuznetsov 2025-09-06 15:17:16 UTC
Export a simple table to MD works perfectly

Verified in

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 5 Commit Notification 2025-09-22 13:51:24 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/852d8b06bcecc5c68194fced94e4c7af02086c52

tdf#167564 sw markdown export: handle multi-para table cells

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 6 Commit Notification 2025-09-24 10:39:10 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/c830c9ab824c8086b2124fec44f834a1d0ae4fa5

tdf#167564 sw markdown export: handle nested table cells

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.