diff --git a/src/plugin.ts b/src/plugin.ts
index bf8d314..5daea55 100644
--- a/src/plugin.ts
+++ b/src/plugin.ts
@@ -1,6 +1,7 @@
-
+import { Converter } from 'typedoc/dist/lib/converter';
import { Component, ConverterComponent } from 'typedoc/dist/lib/converter/components';
-
+import { Context } from 'typedoc/dist/lib/converter/context';
+import { PageEvent } from 'typedoc/dist/lib/output/events';
/**
* Mermaid plugin component.
@@ -8,10 +9,67 @@ import { Component, ConverterComponent } from 'typedoc/dist/lib/converter/compon
@Component({ name: 'mermaid' })
export class MermaidPlugin extends ConverterComponent {
+ static metaMatcher = /<\/body>/;
+ static script = `
+
+
+