Skip to content

okforest/diagram-unchecked

infoOKForest conventions

Reports diagram blocks whose syntax could not be checked (tool not installed or unsupported here).

A diagram’s syntax couldn’t be checked here, so this is only a note: the diagram may be fine. It happens when the diagram tool isn’t installed alongside the CLI (npx -p okforest -p @d2lang/d2 -p mermaid okforest validate . installs both; see diagram checks), or for the Mermaid diagram types whose parser needs a browser, such as pie charts and git graphs. There is nothing to fix: check those diagrams by viewing them.

This file breaks the rule:

churn.md
---
type: Metric
title: Monthly churn
description: The share of customers who cancel in a month.
---
Why customers cancelled last quarter:
```mermaid
pie title Reasons for cancelling
"Price" : 42
"Switched provider" : 31
"No longer needed" : 27
```

okforest validate reports:

churn.md
9:1 info Mermaid diagram not checked: Mermaid's parser for this diagram type needs a browser and cannot run here. okforest/diagram-unchecked

There’s nothing to fix.