GraphReFlyTS

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

ParameterTypeDescription
mermaidSourcestringmermaid source value used by the helper.
optsMermaidLiveUrlOptionsOptions that configure the helper.

Returns

A string value.

Example

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

Source

packages/ts/src/graph/render.ts