11 lines
253 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-05 22:03:05 +02:00
const { mindmap } = await import('./add-diagram');
return { id, diagram: mindmap };
2022-10-05 13:14:05 +02:00
};