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