Skip to content
PACKAGES

mermaidLiveUrl()

Encode arbitrary Mermaid source as a mermaid.live deep link.

import { mermaidLiveUrl } from "@graphrefly/ts/graph";
function mermaidLiveUrl(
mermaidSource: string,
opts: MermaidLiveUrlOptions = {},
): string
ParameterTypeDescription
mermaidSourcestringmermaid source value used by the helper.
optsMermaidLiveUrlOptionsOptions that configure the helper.

A string value.

import { mermaidLiveUrl } from "@graphrefly/ts/graph";

packages/ts/src/graph/render.ts