okforest/diagram-unchecked
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.
Example
Section titled “Example”This file breaks the rule:
---type: Metrictitle: Monthly churndescription: The share of customers who cancel in a month.---
Why customers cancelled last quarter:
```mermaidpie 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-uncheckedThere’s nothing to fix.