manus-skills/.kortix/opencode/skills/design/marp-slide/references/marp-syntax.md
zhukang 1c7abd81d1 All 310 Manus skill-hub community skills as a Kortix marketplace registry
- 310 registry:skill items, 1528 files, 7 categories (hub tags)
- registry.json generated by @kortix/registry buildRegistry
- nested SKILL.md in sn-da-* renamed SUBSKILL.md (no phantom skills)
- provenance + licenses: SOURCES.md
2026-09-15 13:37:20 +08:00

3.5 KiB

Marp Basic Syntax Reference

Basic Marp syntax based on official documentation.

Front Matter (Directives)

Basic Structure

---
marp: true
theme: default
paginate: true
---

Main Global Directives

Directive Description Example Values
marp Enable Marp functionality true
theme Specify theme default, gaia, uncover
size Slide size (Marp Core extension) 16:9, 4:3, A4
paginate Show page numbers true, false
header Header for all slides Any text
footer Footer for all slides Any text
backgroundColor Background color #fff, white
backgroundImage Background image url('image.png')
color Text color #000, black
class Apply CSS class lead, invert

Size Directive (Marp Core)

---
size: 16:9
---

Available sizes:

  • 16:9 (1280x720, default)
  • 4:3 (960x720)
  • A4 (210mm x 297mm)

Page-Specific Directives

To change settings per slide, use <!-- directive_name: value --> format:

<!-- _class: lead -->
<!-- _backgroundColor: black -->
<!-- _color: white -->

# Apply only to this slide

Meaning of underscore _:

  • Without _: Apply to all following slides
  • With _: Apply to current slide only

Slide Breaks

---

# First Slide

---

# Next Slide

---

--- (horizontal rule) switches to a new slide.

Headers and Footers

Global Settings

---
header: 'Lecture Name'
footer: 'October 2024'
---

Per-Slide Settings

<!-- header: 'Section 1' -->
<!-- footer: 'Page number display' -->

Disable

<!-- header: '' -->
<!-- footer: '' -->

Pagination (Page Numbers)

---
paginate: true
---

Display position and style vary by theme.

Hide on specific slide:

<!-- paginate: false -->

Or:

<!-- _paginate: false -->

Inline Styles

Style Specification in Markdown

---
marp: true
---

<style>
section {
  background-color: #f0f0f0;
}

h1 {
  color: #333;
}
</style>

# Slide

Scoped Style

Apply style to specific slide only:

<style scoped>
h1 {
  color: red;
}
</style>

# Red heading on this slide only

Math Formulas (Marp Core Extension)

Supports Pandoc-style math formulas:

Inline Math

$E = mc^2$

Block Math

$$
\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
$$

Emoji (Marp Core Extension)

:smile: :+1: :sparkles:

Supports GitHub Emoji notation.

Comments

HTML comments are not rendered:

<!-- This is a comment -->

Directives are also written in comment format:

<!-- _class: lead -->

For details, refer to official documentation:

Common Configuration Examples

Basic Setup

---
marp: true
theme: default
size: 16:9
paginate: true
---

Title Slide

---
marp: true
theme: default
---

<!-- _class: lead -->
<!-- _paginate: false -->

# Presentation Title

Presenter Name

Section Breaks

<!-- _class: lead -->

# Chapter 2

New Section

---

## Regular Slide

Custom Background Color

<!-- _backgroundColor: #e3f2fd -->

# Slide with Light Blue Background