mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 06:49:47 +02:00
6 lines
171 B
TypeScript
6 lines
171 B
TypeScript
import { DiagramDetector } from '../../diagram-api/detectType';
|
|
|
|
export const mindmapDetector: DiagramDetector = (txt) => {
|
|
return txt.match(/^\s*mindmap/) !== null;
|
|
};
|