Add images, embed videos, and include interactive content with iframes to your documentation.

Images
Add images to provide visual context, examples, or decoration to your documentation.
Basic image syntax
Use Markdown syntax to add images to your documentation:
Image paths are root-relative from your docs repository. For example, if your image is at images/screenshot.png in your repository, the path is /images/screenshot.png. Relative paths (for example, ./screenshot.png) are not supported.
Image files must be less than 20 MB. For larger files, host them on a CDN service like Amazon S3 or Cloudinary.
HTML image embeds
For more control over image display, use HTML <img> tags:
Resize images with inline styles
Use JSX inline styles with the style attribute to resize images:
Disable image zoom
To disable the default zoom on click for images, add the noZoom property:
Link images
To make an image a clickable link, wrap the image in an anchor tag and add the noZoom property:
Images within anchor tags automatically display a pointer cursor to indicate they are clickable.
Light and dark mode images
To display different images for light and dark themes, use Tailwind CSS classes:
SVG images
SVG files that use foreignObject elements render differently in production than in local development. Docfiy's image CDN strips foreignObject from SVGs as a security measure, which can truncate or hide text and other embedded HTML content.
This commonly affects SVGs exported from tools like draw.io that have HTML text formatting or word wrap turned on. To fix this, disable Formatted Text and Word Wrap on all labels in your diagram before exporting to SVG. See the draw.io documentation for more information on SVG exports.
Videos
Docfiy supports HTML tags in Markdown, giving you flexibility to create rich content.
YouTube embeds
Embed YouTube videos using iframe elements:
Self-hosted videos
Use the HTML <video> element for self-hosted video content:
Autoplay videos
To autoplay a video, use:
When using JSX syntax, write double-word attributes in camelCase: autoPlay, playsInline, allowFullScreen.
Iframes
Embed external content using iframe elements: