fix docs diagram

This commit is contained in:
Sidharth Vinod
2023-02-21 16:25:18 +05:30
parent bb56492afe
commit ac21fe2d5c

View File

@@ -2,6 +2,6 @@ import mermaid, { type MermaidConfig } from 'mermaid';
export const render = async (id: string, code: string, config: MermaidConfig): Promise<string> => {
mermaid.initialize(config);
const svg = await mermaid.render(id, code);
const { svg } = await mermaid.render(id, code);
return svg;
};