Skip to content

Importing Slides โ€‹

You can split your slides.md into multiple files for better reusability and organization. To do this, you can use the src frontmatter option to specify the path to the external markdown file. For example:

md
# Title

This is a normal page

---
src: ./pages/toc.md // [!code highlight]
---

<!-- this page will be loaded from './pages/toc.md' -->

Contents here are ignored

---

# Page 4

Another normal page

---
src: ./pages/toc.md   # Reuse the same file // [!code highlight]
---
md
# Table of Contents

Part 1

---

# Table of Contents

Part 2

Importing Specific Slides โ€‹

To reuse some of the slides inside another Markdown file, you can use the hash part of the import path:

md
---
src: ./another-presentation.md#2,5-7
---

This will import the slides 2, 5, 6, and 7 from ./another-presentation.md.

Frontmatter Merging โ€‹

โœจ Frontmatter Merging

Released under the MIT License.