Bug 494286

Summary: Add Mermaid support
Product: [Frameworks and Libraries] frameworks-syntax-highlighting Reporter: Yaron Shahrabani <sh.yaron>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: sh.yaron, walter.von.entferndt
Priority: NOR    
Version First Reported In: 6.7.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Yaron Shahrabani 2024-10-08 10:12:49 UTC
SUMMARY
Add mermaid syntax support.

LINK
https://mermaid.js.org/intro/syntax-reference.html
Comment 1 Christoph Cullmann 2025-12-17 23:34:11 UTC
Git commit 30f7e66d74c42a67ebb1a6900359afbd4b85a2d8 by Christoph Cullmann, on behalf of Jonathan Poelen.
Committed on 17/12/2025 at 23:00.
Pushed by cullmann into branch 'master'.

add Mermaid syntax highlighting

Normally, there is only one test file for a given syntax,
but since Mermaid contains a set of graphics derived from the first word in the file,
each graphic has its own test file.

`utils/update-kate-editor-org.pl` and `autotests/testhighlighter.cpp`
have been adapted accordingly.

A  +8    -0    autotests/folding/test.architecture.mmd.fold
A  +50   -0    autotests/folding/test.block.mmd.fold
A  +79   -0    autotests/folding/test.classDiagram.mmd.fold
A  +43   -0    autotests/folding/test.erDiagram.mmd.fold
A  +152  -0    autotests/folding/test.flowchart.mmd.fold
A  +29   -0    autotests/folding/test.gantt.mmd.fold
A  +19   -0    autotests/folding/test.gitGraph.mmd.fold
A  +20   -0    autotests/folding/test.journey.mmd.fold
A  +8    -0    autotests/folding/test.kanban.mmd.fold
A  +26   -0    autotests/folding/test.mindmap.mmd.fold
A  +5    -0    autotests/folding/test.packet.mmd.fold
A  +9    -0    autotests/folding/test.pie.mmd.fold
A  +17   -0    autotests/folding/test.quadrantChart.mmd.fold
A  +12   -0    autotests/folding/test.radar.mmd.fold
A  +50   -0    autotests/folding/test.requirementDiagram.mmd.fold
A  +7    -0    autotests/folding/test.sankey.mmd.fold
A  +99   -0    autotests/folding/test.sequenceDiagram.mmd.fold
A  +64   -0    autotests/folding/test.stateDiagram.mmd.fold
A  +18   -0    autotests/folding/test.timeline.mmd.fold
A  +7    -0    autotests/folding/test.treemap.mmd.fold
A  +14   -0    autotests/folding/test.xychart.mmd.fold
A  +74   -0    autotests/folding/test.zenuml.mmd.fold
A  +15   -0    autotests/html/test.architecture.mmd.dark.html
A  +15   -0    autotests/html/test.architecture.mmd.html
A  +57   -0    autotests/html/test.block.mmd.dark.html
A  +57   -0    autotests/html/test.block.mmd.html
A  +86   -0    autotests/html/test.classDiagram.mmd.dark.html
A  +86   -0    autotests/html/test.classDiagram.mmd.html
A  +50   -0    autotests/html/test.erDiagram.mmd.dark.html
A  +50   -0    autotests/html/test.erDiagram.mmd.html
A  +159  -0    autotests/html/test.flowchart.mmd.dark.html
A  +159  -0    autotests/html/test.flowchart.mmd.html
A  +36   -0    autotests/html/test.gantt.mmd.dark.html
A  +36   -0    autotests/html/test.gantt.mmd.html
A  +26   -0    autotests/html/test.gitGraph.mmd.dark.html
A  +26   -0    autotests/html/test.gitGraph.mmd.html
A  +27   -0    autotests/html/test.journey.mmd.dark.html
A  +27   -0    autotests/html/test.journey.mmd.html
A  +15   -0    autotests/html/test.kanban.mmd.dark.html
A  +15   -0    autotests/html/test.kanban.mmd.html
A  +33   -0    autotests/html/test.mindmap.mmd.dark.html
A  +33   -0    autotests/html/test.mindmap.mmd.html
A  +12   -0    autotests/html/test.packet.mmd.dark.html
A  +12   -0    autotests/html/test.packet.mmd.html
A  +16   -0    autotests/html/test.pie.mmd.dark.html
A  +16   -0    autotests/html/test.pie.mmd.html
A  +24   -0    autotests/html/test.quadrantChart.mmd.dark.html
A  +24   -0    autotests/html/test.quadrantChart.mmd.html
A  +19   -0    autotests/html/test.radar.mmd.dark.html
A  +19   -0    autotests/html/test.radar.mmd.html
A  +57   -0    autotests/html/test.requirementDiagram.mmd.dark.html
A  +57   -0    autotests/html/test.requirementDiagram.mmd.html
A  +14   -0    autotests/html/test.sankey.mmd.dark.html
A  +14   -0    autotests/html/test.sankey.mmd.html
A  +106  -0    autotests/html/test.sequenceDiagram.mmd.dark.html
A  +106  -0    autotests/html/test.sequenceDiagram.mmd.html
A  +71   -0    autotests/html/test.stateDiagram.mmd.dark.html
A  +71   -0    autotests/html/test.stateDiagram.mmd.html
A  +25   -0    autotests/html/test.timeline.mmd.dark.html
A  +25   -0    autotests/html/test.timeline.mmd.html
A  +14   -0    autotests/html/test.treemap.mmd.dark.html
A  +14   -0    autotests/html/test.treemap.mmd.html
A  +21   -0    autotests/html/test.xychart.mmd.dark.html
A  +21   -0    autotests/html/test.xychart.mmd.html
A  +81   -0    autotests/html/test.zenuml.mmd.dark.html
A  +81   -0    autotests/html/test.zenuml.mmd.html
A  +8    -0    autotests/input/test.architecture.mmd
A  +50   -0    autotests/input/test.block.mmd
A  +79   -0    autotests/input/test.classDiagram.mmd
A  +43   -0    autotests/input/test.erDiagram.mmd
A  +152  -0    autotests/input/test.flowchart.mmd
A  +29   -0    autotests/input/test.gantt.mmd
A  +19   -0    autotests/input/test.gitGraph.mmd
A  +20   -0    autotests/input/test.journey.mmd
A  +8    -0    autotests/input/test.kanban.mmd
A  +26   -0    autotests/input/test.mindmap.mmd
A  +5    -0    autotests/input/test.packet.mmd
A  +9    -0    autotests/input/test.pie.mmd
A  +17   -0    autotests/input/test.quadrantChart.mmd
A  +12   -0    autotests/input/test.radar.mmd
A  +50   -0    autotests/input/test.requirementDiagram.mmd
A  +7    -0    autotests/input/test.sankey.mmd
A  +99   -0    autotests/input/test.sequenceDiagram.mmd
A  +64   -0    autotests/input/test.stateDiagram.mmd
A  +18   -0    autotests/input/test.timeline.mmd
A  +7    -0    autotests/input/test.treemap.mmd
A  +14   -0    autotests/input/test.xychart.mmd
A  +74   -0    autotests/input/test.zenuml.mmd
A  +8    -0    autotests/reference/test.architecture.mmd.ref
A  +50   -0    autotests/reference/test.block.mmd.ref
A  +79   -0    autotests/reference/test.classDiagram.mmd.ref
A  +43   -0    autotests/reference/test.erDiagram.mmd.ref
A  +152  -0    autotests/reference/test.flowchart.mmd.ref
A  +29   -0    autotests/reference/test.gantt.mmd.ref
A  +19   -0    autotests/reference/test.gitGraph.mmd.ref
A  +20   -0    autotests/reference/test.journey.mmd.ref
A  +8    -0    autotests/reference/test.kanban.mmd.ref
A  +26   -0    autotests/reference/test.mindmap.mmd.ref
A  +5    -0    autotests/reference/test.packet.mmd.ref
A  +9    -0    autotests/reference/test.pie.mmd.ref
A  +17   -0    autotests/reference/test.quadrantChart.mmd.ref
A  +12   -0    autotests/reference/test.radar.mmd.ref
A  +50   -0    autotests/reference/test.requirementDiagram.mmd.ref
A  +7    -0    autotests/reference/test.sankey.mmd.ref
A  +99   -0    autotests/reference/test.sequenceDiagram.mmd.ref
A  +64   -0    autotests/reference/test.stateDiagram.mmd.ref
A  +18   -0    autotests/reference/test.timeline.mmd.ref
A  +7    -0    autotests/reference/test.treemap.mmd.ref
A  +14   -0    autotests/reference/test.xychart.mmd.ref
A  +74   -0    autotests/reference/test.zenuml.mmd.ref
M  +41   -0    autotests/testhighlighter.cpp
A  +4811 -0    data/syntax/mermaid.xml
M  +2    -3    utils/update-kate-editor-org.pl

https://invent.kde.org/frameworks/syntax-highlighting/-/commit/30f7e66d74c42a67ebb1a6900359afbd4b85a2d8