# OpenCode prints 8 mermaid kinds as source. A contributor designed the fix in one issue


OpenCode prints 8 mermaid kinds as raw source: bar and line charts, pie, quadrant charts, mind maps, journeys, kanban boards, class and ER diagrams. prismantis draws all 8 there now. The design came from @buer5, a contributor I know only from GitHub.

![prismantis drawing a line chart, a pie, a kanban board and a figure in OpenCode](img/opencode-demo.gif)

The obvious move is to take over the mermaid fence. @buer5's issue showed why that fails: OpenCode already registers it, and registering it twice throws. So the issue proposed a second fence, `chart`, with mermaid inside. A kind prismantis can't draw falls back to a plain code block, the same as before. Colors come from the active OpenCode theme, and a session note teaches the model when to write one.

The issue asked for 2 kinds. I built all 8 on its shape, and 0.48.0 shipped a day and a half after it opened. The next morning OpenCode's default theme drew every series in near-identical oranges, so 0.48.1 swaps a repeated hue for a free one.

```text
opencode plugin add 'github:NahumLitvin/prismantis#v0.48.1::path:opencode'
```

The issue: https://github.com/NahumLitvin/prismantis/issues/539