Skip to content
Yamuno
Browse

Diagrams and Math

A work item with two Mermaid diagrams written in its Markdown field

Mermaid diagrams

Write a code block with the language mermaid:

```mermaid
sequenceDiagram
  App->>API: POST /login
  API-->>App: 200 OK
```

The diagram is drawn when you save and shown on the work item. Every Mermaid diagram type works, including flowcharts, sequence, state, class, entity relationship and Gantt diagrams. Edit the code to change the picture.

LaTeX math

Put a formula between $$ on its own lines:

$$
C(n) = p \cdot \max\left(0,\ n - 10^{4}\right)
$$

Formulas are typeset for everyone who opens the work item. Fractions, sums, integrals, roots, matrices, cases and aligned all work. Inline formulas between single $ are typeset in the editor preview and shown as code on the work item.

LaTeX math rendered in a Markdown field next to its source

Turning them off

An admin can turn diagrams or math off for a field context in Field settings. The code then shows as a code block.

Stuck on something this page does not cover? Ask the developers.