OpenCode prints 8 mermaid kinds as source. A contributor designed the fix in one issue
The obvious fix throws. @buer5 found the one that doesn't.
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.

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.
opencode plugin add 'github:NahumLitvin/prismantis#v0.48.1::path:opencode'
The issue: https://github.com/NahumLitvin/prismantis/issues/539
References
- issue · closed NahumLitvin/prismantis#539: OpenCode: a chart block for xychart and pie, the two mermaid kinds OpenCode leaves as source
- PR · merged NahumLitvin/prismantis#558: OpenCode: draw every mermaid kind it leaves as source, as ```chart blocks
- PR · merged NahumLitvin/prismantis#565: OpenCode: distinct chart colors and an OpenCode-only demo
- issue · open anomalyco/opencode#64609: [FEATURE]: TUI plugin renderers for non-code markdown blocks and a per-part slot



Comments