diff --git a/src/components/editor/markdown-renderer/replace-components/image/image-replacer.tsx b/src/components/editor/markdown-renderer/replace-components/image/image-replacer.tsx index cf459a9c5..4dd2ea8ed 100644 --- a/src/components/editor/markdown-renderer/replace-components/image/image-replacer.tsx +++ b/src/components/editor/markdown-renderer/replace-components/image/image-replacer.tsx @@ -4,9 +4,10 @@ import { ComponentReplacer } from '../ComponentReplacer' import { ImageFrame } from './image-frame' export class ImageReplacer implements ComponentReplacer { - getReplacement (node: DomElement): React.ReactElement | undefined { + getReplacement (node: DomElement, index: number): React.ReactElement | undefined { if (node.name === 'img' && node.attribs) { return