chore: Merge master to develop

This commit is contained in:
Sidharth Vinod
2022-11-10 13:51:53 +05:30
parent 0d8f09cec5
commit a83f88bdf1
40 changed files with 2131 additions and 1721 deletions

View File

@@ -1,10 +1,20 @@
export const id = 'mindmap';
import type { ExternalDiagramDefinition } from 'mermaid';
export const detector = (txt: string) => {
const id = 'mindmap';
const detector = (txt: string) => {
return txt.match(/^\s*mindmap/) !== null;
};
export const loadDiagram = async () => {
const loader = async () => {
const { diagram } = await import('./diagram-definition');
return { id, diagram };
};
const plugin: ExternalDiagramDefinition = {
id,
detector,
loader,
};
export default plugin;