|
|
@@ -16,6 +16,7 @@ import type { Pluggable } from 'unified';
|
|
|
|
|
|
import { DrawioViewerWithEditButton } from '~/components/ReactMarkdownComponents/DrawioViewerWithEditButton';
|
|
|
import { Header } from '~/components/ReactMarkdownComponents/Header';
|
|
|
+import { LightBox } from '~/components/ReactMarkdownComponents/LightBox';
|
|
|
import { RichAttachment } from '~/components/ReactMarkdownComponents/RichAttachment';
|
|
|
import { TableWithEditButton } from '~/components/ReactMarkdownComponents/TableWithEditButton';
|
|
|
import * as mermaid from '~/features/mermaid';
|
|
|
@@ -113,6 +114,7 @@ export const generateViewOptions = (
|
|
|
components.table = TableWithEditButton;
|
|
|
components.mermaid = mermaid.MermaidViewer;
|
|
|
components.attachment = RichAttachment;
|
|
|
+ components.img = LightBox;
|
|
|
}
|
|
|
|
|
|
if (config.isEnabledXssPrevention) {
|
|
|
@@ -218,6 +220,7 @@ export const generateSimpleViewOptions = (
|
|
|
components.drawio = drawio.DrawioViewer;
|
|
|
components.mermaid = mermaid.MermaidViewer;
|
|
|
components.attachment = RichAttachment;
|
|
|
+ components.img = LightBox;
|
|
|
}
|
|
|
|
|
|
if (config.isEnabledXssPrevention) {
|
|
|
@@ -295,6 +298,7 @@ export const generatePreviewOptions = (config: RendererConfig, pagePath: string)
|
|
|
components.drawio = drawio.DrawioViewer;
|
|
|
components.mermaid = mermaid.MermaidViewer;
|
|
|
components.attachment = RichAttachment;
|
|
|
+ components.img = LightBox;
|
|
|
}
|
|
|
|
|
|
if (config.isEnabledXssPrevention) {
|