@excalidraw/mermaid-to-excalidraw
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

mermaid-to-excalidraw

Convert mermaid diagrams to excalidraw

Set up

Install packages:

yarn

Start development playground:

yarn start

Build command:

yarn build

Get started

Example code:

import { parseMermaidToExcalidraw } from "@excalidraw/mermaid-to-excalidraw";

try {
  const { elements, files } = await parseMermaidToExcalidraw(diagramDefinition, {
    fontSize: DEFAULT_FONT_SIZE,
  });
  // Render elements and files on Excalidraw
} catch (e) {
  // Parse error, displaying error message to users
}

Playground

Try out here.

API

Head over to the docs.

Support new Diagram type

Head over to the docs.

/@excalidraw/mermaid-to-excalidraw/

    Package Sidebar

    Install

    npm i @excalidraw/mermaid-to-excalidraw

    Weekly Downloads

    1,507

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    93.3 kB

    Total Files

    45

    Last publish

    Collaborators

    • maielo
    • aa1216
    • vjeux
    • dwelle