mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-21 06:53:17 +08:00
11 lines
251 B
TypeScript
11 lines
251 B
TypeScript
export const id = 'mindmap';
|
|
|
|
export const detector = (txt: string) => {
|
|
return txt.match(/^\s*mindmap/) !== null;
|
|
};
|
|
|
|
export const loadDiagram = async () => {
|
|
const { diagram } = await import('./diagram-definition');
|
|
return { id, diagram };
|
|
};
|