API Reference
mermaidLiveUrl()
Encode arbitrary Mermaid source as a mermaid.live deep link.
Import
import { mermaidLiveUrl } from "@graphrefly/ts/graph";
Signature
function mermaidLiveUrl(
mermaidSource: string,
opts: MermaidLiveUrlOptions = {},
): string
Parameters
| Parameter | Type | Description |
|---|---|---|
mermaidSource | string | mermaid source value used by the helper. |
opts | MermaidLiveUrlOptions | Options that configure the helper. |
Returns
A string value.
Example
import { mermaidLiveUrl } from "@graphrefly/ts/graph";
Source
packages/ts/src/graph/render.ts