Yuki Takei 3 лет назад
Родитель
Сommit
cc8a83b0df
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      packages/app/src/services/renderer/renderer.tsx

+ 2 - 0
packages/app/src/services/renderer/renderer.tsx

@@ -3,6 +3,7 @@ import { ComponentType } from 'react';
 
 import { Lsx } from '@growi/plugin-lsx/components';
 import * as lsxGrowiPlugin from '@growi/plugin-lsx/services/renderer';
+import * as drawioPlugin from '@growi/remark-drawio-plugin';
 import growiPlugin from '@growi/remark-growi-plugin';
 import { Schema as SanitizeOption } from 'hast-util-sanitize';
 import { SpecialComponents } from 'react-markdown/lib/ast-to-react';
@@ -435,6 +436,7 @@ export const generatePreviewOptions = (config: RendererConfig, pagePath: string)
     [plantuml.remarkPlugin, { baseUrl: config.plantumlUri }],
     xsvToTable.remarkPlugin,
     lsxGrowiPlugin.remarkPlugin,
+    drawioPlugin.remarkPlugin,
   );
   if (config.isEnabledLinebreaks) {
     remarkPlugins.push(breaks);