Something went wrong. Try again.
opencode v2 mirror
Something went wrong. Try again.
1234567891011import { drawFlowchartDiagramGrid } from "./drawing.js"import type { FlowchartDiagramRenderOptions } from "./options.js"import { parseMermaidFlowchartDiagram } from "./parser.js"
export function renderFlowchartDiagram(content: string, options: FlowchartDiagramRenderOptions = {}): string { return drawFlowchartDiagramGrid(parseMermaidFlowchartDiagram(content), options).toString({ trimTop: true, trimBottom: true, })}