# Rich media in Markdown > Embed images, videos, PDFs, LaTeX equations, and diagrams in your Fern documentation. 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](https://www.markdownguide.org/basic-syntax/#images-1) or the [`` HTML tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img) to insert the image. Don't use the `` element, as it has inconsistent browser support. 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 ![Alt text](../../assets/images/logo.png "Optional title") ![Alt text](/assets/images/logo.png "Optional title") ``` ```html ``` Common image attributes: | Attribute | Description | | -------------------- | ---------------------------------- | | `src` | URL or path to the image file | | `alt` | Alternative text for accessibility | | `title` | Tooltip text shown on hover | | `width` and `height` | Dimensions of the image (px) | | `noZoom` | Disables image zoom functionality | For more details about the HTML image element and its attributes, see the [MDN documentation on the img element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img). ## PDFs Embed PDFs using the ` ``` See an example of [how it renders](https://elevenlabs.io/docs/conversational-ai/guides/integrations/zendesk#demo-video) on the corresponding docs page from the ElevenLabs documentation. ## LaTeX Fern supports [LaTeX](https://www.latex-project.org/) math equations. To use LaTeX, wrap your inline math equations in `$`. For example, `$(x^2 + y^2 = z^2)$` will render $x^2 + y^2 = z^2$. For display math equations, wrap the equation in `$$`. For example: ```latex $$ % \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 $$ ``` $$ % \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 $$ ### 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 $10 and shipping is $5 With escaping: The product costs \$10 and shipping is \$5
```markdown Markdown wordWrap Without escaping: The product costs $10 and shipping is $5 With escaping: The product costs \$10 and shipping is \$5 ``` ## Diagrams Fern supports creating diagrams within your Markdown using [Mermaid](https://mermaid.js.org/). 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`. ````markdown ```mermaid erDiagram CUSTOMER ||--o{ PLANT-ORDER : places PLANT-ORDER ||--|{ PLANT-ID : contains CUSTOMER }|..|{ DELIVERY-ADDRESS : uses ``` ```` ```mermaid erDiagram CUSTOMER ||--o{ PLANT-ORDER : places PLANT-ORDER ||--|{ PLANT-ID : contains CUSTOMER }|..|{ DELIVERY-ADDRESS : uses ```