---
title: 'Embedding Content'
url: 'https://demo.hibbittsdesign.org/grav-helios-open-reader/open-reader-guide/section-3/embedding-content'
markdown: 'https://demo.hibbittsdesign.org/grav-helios-open-reader/open-reader-guide/section-3/embedding-content.md'
date: '2026-11-09'
description: 'Helios Open Reader includes shortcodes for embedding rich content responsively, with automatic dark/light theme detection where supported. iFrame – [iframe] [iframe url="https://example.com/embed"] Embeds any URL in a responsive 16:9 container. Add a title for accessibility (recommended), and optio…'
---

Chapter 3

#  Embedding Content 

On this page

- [iFrame – \[iframe\]](#iframe-iframe)
- [Google Slides – \[googleslides\]](#google-slides-googleslide)
- [PDF Viewer – \[pdf\]](#pdf-viewer-pdf)
- [H5P Interactive Content – \[h5p\]](#h5p-interactive-content-h)
- [Embedly Cards – \[embedly\]](#embedly-cards-embedly)
- [Diagrams – Mermaid](#diagrams-mermaid)
- [Math – LaTeX](#math-latex)

Helios Open Reader includes shortcodes for embedding rich content responsively, with automatic dark/light theme detection where supported.

## iFrame – `[iframe]`

```
[iframe url="https://example.com/embed"]
```

Embeds any URL in a responsive 16:9 container. Add a `title` for accessibility (recommended), and optionally set a different ratio:

```
[iframe url="https://example.com" title="My embedded content"]
[iframe url="https://example.com" title="My embedded content" ratio="4:3"]
```

## Google Slides – `[googleslides]`

```
[googleslides url="https://docs.google.com/presentation/d/..." title="Introduction slides"]
```

Embeds a Google Slides presentation responsively. Paste the "Publish to the web" embed URL. Supports `ratio="4:3"`.

## PDF Viewer – `[pdf]`

```
[pdf url="https://example.com/document.pdf" title="Course reading"]
```

Displays a PDF via Google Docs viewer. Default ratio is 16:9. For letter or A4 documents:

```
[pdf url="https://example.com/document.pdf" title="Course reading" ratio="portrait"]
```

## H5P Interactive Content – `[h5p]`

Embed via full URL:

```
[h5p url="https://h5p.org/h5p/embed/123" title="Interactive quiz"]
```

Or via Content ID (requires **H5P Content Embed Source URL** to be set in plugin settings):

```
[h5p id="123" title="Interactive quiz"]
```

## Embedly Cards – `[embedly]`

```
[embedly url="https://example.com/article"]
```

Renders an Embedly card with dark mode support. Useful for embedding links to articles, videos, and other web content with rich previews.

> [!TIP]
> 
> All embed shortcodes are responsive by default. Always add a descriptive `title` parameter to iframe-based shortcodes (``, ``, ``, ``) — this sets the iframe's accessible title for screen readers. The 16:9 ratio works well for video content and slides; use `ratio="portrait"` for PDF documents and `ratio="4:3"` for older slide formats.

## Diagrams – Mermaid

Flowcharts, timelines and other diagrams can be written as text in a code block marked `mermaid`. The Mermaid plugin draws them to match light or dark mode:

```markdown
```mermaid
flowchart TD
    accTitle: Choosing an entry point for OER
    accDescr: A decision chart. If an open resource already exists and fits your course as it is, adopt it. If one exists but needs changes, adapt it. If nothing suitable exists, create and publish your own.

    EXISTS("`Does an open resource exist?`") -->|Yes| FITS("`Does it fit as it is?`")
    EXISTS -->|No| CREATE["`**3. Create** and publish`"]
    FITS -->|Yes| ADOPT["`**1. Adopt** as it is`"]
    FITS -->|No| ADAPT["`**2. Adapt** for your context`"]
```
```

Which draws:

```mermaid
flowchart TD
    accTitle: Choosing an entry point for OER
    accDescr: A decision chart. If an open resource already exists and fits your course as it is, adopt it. If one exists but needs changes, adapt it. If nothing suitable exists, create and publish your own.

    EXISTS("`Does an open resource exist?`") -->|Yes| FITS("`Does it fit as it is?`")
    EXISTS -->|No| CREATE["`**3. Create** and publish`"]
    FITS -->|Yes| ADOPT["`**1. Adopt** as it is`"]
    FITS -->|No| ADAPT["`**2. Adapt** for your context`"]
```

The `accTitle` and `accDescr` lines give screen readers a title and description, like an image's alt text.

## Math – LaTeX

Math can be written as LaTeX: between single dollar signs within a sentence, or between double dollar signs on their own lines for a block. The LaTeX Math plugin draws it:

```markdown
The average of $n$ values is their sum divided by $n$:

$$
\bar{x} = \frac{1}{n} \sum_{i=1}^{n} x_i
$$
```

Which draws:

The average of $n$ values is their sum divided by $n$:

$$ \bar{x} = \frac{1}{n} \sum_{i=1}^{n} x_i $$

This work by [Your Name](#) is licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).

---

## Navigation

- Parent: [Creating Content](https://demo.hibbittsdesign.org/grav-helios-open-reader/open-reader-guide/section-3.md)
- Previous: [Callout Blocks](https://demo.hibbittsdesign.org/grav-helios-open-reader/open-reader-guide/section-3/callout-blocks.md)
