Add zenuml

This commit is contained in:
Sidharth Vinod
2023-04-23 00:34:59 +05:30
parent 49bb87e14a
commit 12ed81855a
13 changed files with 698 additions and 113 deletions

View File

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