https://bugs.documentfoundation.org/show_bug.cgi?id=172531
Bug ID: 172531
Summary: Feature Request: Recognize Mermaid fenced code blocks
as diagrams
Product: LibreOffice
Version: 26.2.4.2 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: enhancement
Priority: medium
Component: filters and storage
Assignee: [email protected]
Reporter: [email protected]
Description:
LibreOffice currently imports Mermaid fenced code blocks as ordinary
preformatted text.
Mermaid has become a widely used diagram description language and is commonly
found in Markdown documentation, software projects, technical specifications,
knowledge bases and documentation platforms such as GitHub, GitLab and many
static site generators.
Steps to Reproduce:
1) Save as markdown file (input.md) with notepad.
## Mermaid diagrams
```mermaid
graph TD
A[Start] --> B{Decision}
B -->|Yes| C[Finish]
B -->|No| D[Alternate]
```
2) Open LibreOffice
Actual Results:
New feature.
Expected Results:
Mermaid content should be recognized as a diagram description rather than being
treated only as generic preformatted text.
Reproducible: Always
User Profile Reset: No
Additional Info:
## Example
```mermaid
graph TD
A[Start] --> B{Decision}
B -->|Yes| C[Finish]
B -->|No| D[Alternative]
```
## Proposed enhancement
When importing Markdown documents, LibreOffice could recognize Mermaid fenced
code blocks and provide dedicated handling for them.
Possible implementation approaches include:
* preserving Mermaid blocks as a distinct document object;
* providing a dedicated Mermaid diagram object type;
* allowing future rendering or preview support;
* enabling export and round-trip preservation without loss of semantic
information.
## Benefits
* Improved compatibility with modern Markdown ecosystems.
* Better support for technical documentation workflows.
* Better interoperability with GitHub, GitLab and documentation platforms.
* Foundation for future diagram rendering capabilities.
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.