import { OutputBlockData } from "@editorjs/editorjs"; export const image = ({ data }: OutputBlockData): string => { const url = data.file?.url || data.url || ""; const caption = data.caption || ""; const isCaptionBlank = !caption || caption.trim() === ""; return ` ${ !isCaptionBlank ? `` : "" }
${caption}

${caption}

`; };