https://bugs.documentfoundation.org/show_bug.cgi?id=172530
Bug ID: 172530
Summary: Code fence language identifier is lost during import
Product: LibreOffice
Version: 26.2.4.2 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: filters and storage
Assignee: [email protected]
Reporter: [email protected]
Description:
The Markdown importer discards the language identifier associated with fenced
code blocks.
Steps to Reproduce:
1) Save as markdown file (input.md) with notepad.
```json
{
"test": true
}
```
```mermaid
graph TD
A[Start] --> B[End]
```
2) Open LibreOffice
Actual Results:
The code blocks are imported without any language information.
Expected Results:
The language identifiers ("json" and "mermaid") should remain associated with
their respective code blocks.
Reproducible: Always
User Profile Reset: No
Additional Info:
## Impact
Semantic information is lost.
Syntax highlighting, language-specific processing and round-trip fidelity
become impossible.
## Environment
Version: 26.2.4.2 (X86_64)
Build ID: 0229ac93fcf0d7cbc6376066c6f35021cef002dc
CPU threads: 12
OS: Windows 11 X86_64 (build 26200)
UI render: Skia/Raster
VCL: win
Locale: pt-BR (pt_BR)
UI: pt-BR
Calc: threaded
--
You are receiving this mail because:
You are the assignee for the bug.