11 lines
251 B
TypeScript
Raw Normal View History

2022-10-05 13:14:05 +02:00
export const id = 'mindmap';
2022-10-06 13:44:28 +08:00
export const detector = (txt: string) => {
2022-10-05 13:14:05 +02:00
return txt.match(/^\s*mindmap/) !== null;
};
2022-09-26 14:22:21 +02:00
2022-10-05 13:14:05 +02:00
export const loadDiagram = async () => {
2022-10-07 10:40:01 +02:00
const { diagram } = await import('./diagram-definition');
return { id, diagram };
2022-10-05 13:14:05 +02:00
};