mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Fix the example in installation.mdx
This commit is contained in:
parent
a71bb63d1f
commit
f6a623ebbe
1 changed files with 2 additions and 1 deletions
|
@ -22,8 +22,9 @@ Once the library is installed, its ready to use.
|
||||||
import { parseMermaidToExcalidraw } from "@excalidraw/mermaid-to-excalidraw";
|
import { parseMermaidToExcalidraw } from "@excalidraw/mermaid-to-excalidraw";
|
||||||
import { convertToExcalidrawElements} from "@excalidraw/excalidraw"
|
import { convertToExcalidrawElements} from "@excalidraw/excalidraw"
|
||||||
|
|
||||||
|
const DEFAULT_FONT_SIZE = 20;
|
||||||
try {
|
try {
|
||||||
const { elements, files } = await parseMermaid(diagramDefinition, {
|
const { elements, files } = await parseMermaidToExcalidraw(diagramDefinition, {
|
||||||
fontSize: DEFAULT_FONT_SIZE,
|
fontSize: DEFAULT_FONT_SIZE,
|
||||||
});
|
});
|
||||||
// currently the elements returned from the parser are in a "skeleton" format
|
// currently the elements returned from the parser are in a "skeleton" format
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue