mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-23 01:09:42 +02:00
chore: Cleanup
This commit is contained in:
10
packages/mermaid-mindmap/src/detector.ts
Normal file
10
packages/mermaid-mindmap/src/detector.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
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 };
|
||||
};
|
Reference in New Issue
Block a user