Skip to content
Back to skills

549 Marp Syntax 6fff73be

ASecurity

Basic Marp syntax based on official documentation.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
documentationgitdocumentation

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 549-marp-syntax_6fff73be --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 549 Marp Syntax 6fff73be?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 549 Marp Syntax 6fff73be
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-549-marp-syntax-6fff73be/badge)](https://www.skillsdirectory.com/skills/tools-only-549-marp-syntax-6fff73be)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# Marp Basic Syntax Reference

Basic Marp syntax based on official documentation.

## Front Matter (Directives)

### Basic Structure

```markdown
---
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)

```markdown
---
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:

```markdown
<!-- _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

```markdown
---

# First Slide

---

# Next Slide

---
```

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

## Headers and Footers

### Global Settings

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

### Per-Slide Settings

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

### Disable

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

## Pagination (Page Numbers)

```markdown
---
paginate: true
---
```

Display position and style vary by theme.

Hide on specific slide:
```markdown
<!-- paginate: false -->
```

Or:
```markdown
<!-- _paginate: false -->
```

## Inline Styles

### Style Specification in Markdown

```markdown
---
marp: true
---

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

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

# Slide
```

### Scoped Style

Apply style to specific slide only:

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

# Red heading on this slide only
```

## Math Formulas (Marp Core Extension)

Supports Pandoc-style math formulas:

### Inline Math

```markdown
$E = mc^2$
```

### Block Math

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

## Emoji (Marp Core Extension)

```markdown
:smile: :+1: :sparkles:
```

Supports GitHub Emoji notation.

## Comments

HTML comments are not rendered:

```markdown
<!-- This is a comment -->
```

Directives are also written in comment format:

```markdown
<!-- _class: lead -->
```

## Official Reference Links

For details, refer to official documentation:

- **Directives List**: https://marpit.marp.app/directives
- **Marp Core Features**: https://github.com/marp-team/marp-core
- **Theme CSS Specification**: https://marpit.marp.app/theme-css
- **Official Site**: https://marp.app/

## Common Configuration Examples

### Basic Setup

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

### Title Slide

```markdown
---
marp: true
theme: default
---

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

# Presentation Title

Presenter Name
```

### Section Breaks

```markdown
<!-- _class: lead -->

# Chapter 2

New Section

---

## Regular Slide
```

### Custom Background Color

```markdown
<!-- _backgroundColor: #e3f2fd -->

# Slide with Light Blue Background
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.