• Converts mermaid code (potentially produced by graphToMermaid) to an url that presents the graph in the mermaid editor.

    Parameters

    • code: string

      code to convert

    • edit: boolean = false

      if true, the url will point to the editor, otherwise it will point to the viewer

    Returns string