For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Book a demoLog inStart for free
  • Getting started
    • Overview
    • How it works
    • Quickstart
    • Project structure
    • Customer showcase
    • Changelog
  • Configuration
    • Overview
    • Site-level settings
    • Page-level settings
  • Writing content
    • Markdown basics
    • Rich media in Markdown
    • Fern Editor
    • Reusable snippets
  • AI features
    • Overview
    • Fern Writer
    • AI-generated examples
    • Markdown access
      • Overview
      • Customize LLM output
      • Agent directives
      • Analytics and integration
    • MCP server
    • API catalog discovery
  • Public API
    • GETJWT from Fern API key
    • GETAlgolia search credentials
    • GETCurrent user information
  • Fern Writer API
    • GETGet Fern Writer Install Link
Checking status...
SOC2Soc 2 Type II
© 2026 Fern • Birch Solutions, Inc., a Postman company

Documentation

SDKsDocsAsk FernCLI Reference

API Definitions

OpenAPIAsyncAPIOpenRPCgRPC

Resources

BlogSupportPricing

Company

Brand KitPrivacy PolicyTerms of Service
LogoLogo
Book a demoLog inStart for free
On this page
  • Images
  • PDFs
  • Videos
  • Local videos
  • Embed YouTube or Loom videos
  • External sites
  • LaTeX
  • Displaying literal dollar signs
  • Diagrams
Writing content

Rich media in Markdown

||View as Markdown|
Was this page helpful?
Edit this page
Previous

Markdown basics

Next

Components overview

Enhance your documentation with rich media content including images, videos, PDFs, mathematical equations, and diagrams.

Images

You can use locally stored images or URLs to include images in your Markdown pages. Use either Markdown syntax or the <img> HTML tag to insert the image. Don’t use the <embed> element, as it has inconsistent browser support.

Image paths

You can reference images using paths relative to the page’s location (using ./ or ../) or relative to the fern folder root (using /). For example, an image at fern/assets/images/logo.png can be referenced from any page as /assets/images/logo.png.

Markdown
HTML
1<!-- Relative to page location -->
2![Alt text](../../assets/images/logo.png "Optional title")
3
4<!-- Relative to fern folder root -->
5![Alt text](/assets/images/logo.png "Optional title")

Common image attributes:

AttributeDescription
srcURL or path to the image file
altAlternative text for accessibility
titleTooltip text shown on hover
width and heightDimensions of the image (px)
noZoomDisables image zoom functionality

For more details about the HTML image element and its attributes, see the MDN documentation on the img element.

PDFs

Embed PDFs using the <iframe> element. Don’t use the <embed> element, as it has inconsistent browser support.

Rendered PDF
PDF syntax

Videos

Local videos

You can embed videos in your documentation using the HTML <video> tag. This gives you control over video playback settings like autoplay, looping, and muting. Don’t use the <embed> element, as it has inconsistent browser support.

.mdx files use JSX syntax, not pure HTML. Attributes for HTML elements like <video> and <iframe> that are embedded in .mdx pages must be written in camelCase rather than lowercase. For example, use autoPlay instead of autoplay.

Rendered video
Video syntax

You can also wrap the video in a container div for additional styling:

1<div class="card-video">
2 <video
3 src="path/to/your/video.mp4"
4 poster="path/to/your/thumbnail.png"
5 width="854"
6 height="480"
7 autoPlay
8 loop
9 playsInline
10 muted
11 controls
12 >
13 </video>
14</div>

Common video attributes:

AttributeDescription
srcURL or path to the video file
posterURL or path to a preview image shown while the video is loading or before the user hits play
width and heightDimensions of the video player
autoPlayVideo starts playing automatically
loopVideo repeats when finished
playsInlineVideo plays inline on mobile devices instead of fullscreen
mutedVideo plays without sound
controlsShows video player controls (play/pause, volume, etc.)

For more details about the HTML video element and its attributes, see the MDN documentation on the video element.

Embed YouTube or Loom videos

You can embed videos from YouTube, Loom, Vimeo, and other streaming platforms using an <iframe> element.

.mdx files use JSX syntax, not pure HTML. Attributes for HTML elements like <video> and <iframe> that are embedded in .mdx pages must be written in camelCase rather than lowercase. For example, use autoPlay instead of autoplay.

Rendered Loom video
Loom video syntax

See an example of how it renders on the corresponding docs page from the ElevenLabs documentation.

External sites

You can embed any external web page in your documentation using an <iframe>.

If the target site sets headers like X-Frame-Options or a restrictive Content-Security-Policy, the browser blocks the embed. Verify that the site you want to embed allows being framed.

Rendered external site
External site syntax

When embedding a Fern Docs site inside another application, append ?embedded=true to the URL to hide the header and footer.

LaTeX

Fern supports LaTeX math equations. To use LaTeX, wrap your inline math equations in $. For example, $(x^2 + y^2 = z^2)$ will render x2+y2=z2x^2 + y^2 = z^2x2+y2=z2.

For display math equations, wrap the equation in $$. For example:

1$$
2% \f is defined as #1f(#2) using the macro
3\f\relax{x} = \int_{-\infty}^\infty
4 \f\hat\xi\,e^{2 \pi i \xi x}
5 \,d\xi
6$$
\fx=∫−∞∞\fξ^ e2πiξx dξ% \f is defined as #1f(#2) using the macro \f\relax{x} = \int_{-\infty}^\infty \f\hat\xi\,e^{2 \pi i \xi x} \,d\xi\fx=∫−∞∞​\fξ^​e2πiξxdξ

Displaying literal dollar signs

Text containing dollar amounts (like prices, budgets, or costs) may unintentionally render as math equations. To display literal dollar signs, escape them with a backslash (\):

Without escaping: The product costs 10andshippingis10 and shipping is 10andshippingis5

With escaping: The product costs $10 and shipping is $5

Markdown
1Without escaping: The product costs $10 and shipping is $5
2With escaping: The product costs \$10 and shipping is \$5

Diagrams

Fern supports creating diagrams within your Markdown using Mermaid. Mermaid offers a variety of diagrams, including flowcharts, entity-relationship models, and Gantt charts. To include a Mermaid diagram in your Markdown file, create a codeblock marked with mermaid.

1```mermaid
2erDiagram
3 CUSTOMER ||--o{ PLANT-ORDER : places
4 PLANT-ORDER ||--|{ PLANT-ID : contains
5 CUSTOMER }|..|{ DELIVERY-ADDRESS : uses
6```