wiki:MermaidMacro

Version 3 (modified by figaro, 8 years ago) (diff)

Rearranged paragraphs to maintain consistency

Render mermaid diagrams in wiki pages

Description

With this macro, you can render mermaid diagrams in Trac wiki pages. mermaid is a JavaScript library that can render sequence diagrams, flowcharts and Gantt charts from text in a similar manner as markdown. The library itself is MIT licensed.

Mermaid javascript library demo output

Current version of this macro uses mermaid version 0.5.1.

Bugs/Feature Requests

Existing bugs and feature requests for MermaidMacro are here.

If you have any issues, create a new ticket.

defect

5 / 5

enhancement

1 / 3

Download

Download the zipped source from here.

Source

You can check out MermaidMacro from here using Subversion, or browse the source with Trac.

Installation

General instructions on installing Trac plugins can be found on the TracPlugins page.

Example

{{{#!Mermaid
sequenceDiagram
A->> B: Query
B->> C: Forward query
Note right of C: Thinking...
C->> B: Response
B->> A: Forward response
}}}

This yields the following diagram on the page:

Mermaid javascript library example output

Recent Changes

17355 by rjollos on 2019-04-04 05:24:26
Fix Error: int object has no attribute replace

Fixes #13546.

16903 by rjollos on 2017-10-20 03:20:21
TracMermaid 0.4.2: Fix AttributeError when resource.id not string

Fixes #13305.

16902 by rjollos on 2017-10-20 03:17:07
TracMermaid 0.4.1: Fix undefined variable

Require Trac >= 1.0.

Refs #13305.

(more)

Author/Contributors

Author: tkob-trac
Maintainer: tkob-trac
Contributors:

Attachments (4)

Download all attachments as: .zip