Bug 168827 - Markdown export: missing content when document includes Math object
Summary: Markdown export: missing content when document includes Math object
Status: NEW
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-10-12 19:27 UTC by RGB
Modified: 2025-11-10 04:57 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 RGB 2025-10-12 19:27:14 UTC
This is a follow up of Bug 168572. If you open the test .odt file provided on that report with a recent development version of LibreOffice 26.2 and export it to Markdown, you'll see that the Math object included in the original document gets replaced by 

![]()

completely erasing the object content. 

The export filter should, at least, provide the Math instructions, which in the case of the test file are

int from a to b cos ( x ) dx = sin( x ) + C

Some marker to indicate the beginning and end of the object would be great, too.

---

NOTE: 

Ideally, because many Markdown editors (for example, Markor) understand LaTeX syntax, translating that expression as

$\int_{a}^{b}\cos\left(x\right)dx=\sin\left(x\right)+C$

would be great.
Comment 1 tkakar 2025-11-09 08:11:43 UTC
Confirmed this data loss issue is present:

Version: 25.8.2.2 (X86_64)
Build ID: d401f2107ccab8f924a8e2df40f573aab7605b6f
CPU threads: 16; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

In this version, exporting the .odt file from bug 168572 to Markdown results in the Math object being replaced by ![]()

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 620(Build:0)
CPU threads: 16; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

In this version, the Math object displays as a broken object that displays "Read Error."