mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-04 12:54:08 +01:00 
			
		
		
		
	fix: Import diagram
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
			
		||||
export const id = 'mindmap';
 | 
			
		||||
 | 
			
		||||
const detector = (txt: string) => {
 | 
			
		||||
export const detector = (txt: string) => {
 | 
			
		||||
  return txt.match(/^\s*mindmap/) !== null;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
@@ -8,9 +8,3 @@ export const loadDiagram = async () => {
 | 
			
		||||
  const { mindmap } = await import('./add-diagram');
 | 
			
		||||
  return { id, diagram: mindmap };
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  id,
 | 
			
		||||
  detector,
 | 
			
		||||
  loadDiagram,
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user