Marp Renderer¶
The Marp renderer generates Markdown slides compatible with Marp, the Markdown Presentation Ecosystem.
Overview¶
Marp slides are ideal for:
- Executive presentations
- Stakeholder reviews
- Team meetings
- Progress updates
Slide Structure¶
The Marp renderer generates the following slide sequence:
- Title Slide - Document name, owner, period
- Executive Summary - Overall health, phase distribution
- Category Overview - One slide per category with metrics summary
- Metric Details - Detailed slides for Yellow/Red status metrics
- DMAIC Phase Summary - Metrics grouped by phase
- Control Charts - SPC visualizations (optional)
- Root Cause Analysis - Analysis findings (optional)
- Initiatives Summary - Improvement projects (optional)
- Questions - Closing slide
Usage¶
Go API¶
import (
"github.com/grokify/structured-goals/dmaic"
"github.com/grokify/structured-goals/dmaic/render"
"github.com/grokify/structured-goals/dmaic/render/marp"
)
doc, _ := dmaic.ReadFile("metrics.json")
renderer := marp.NewRenderer()
output, err := renderer.Render(doc, &render.Options{
IncludeInitiatives: true,
ShowControlCharts: true,
ShowCapabilityMetrics: true,
})
os.WriteFile("slides.md", output, 0644)
Output Example¶
---
marp: true
theme: default
paginate: true
---
# Manufacturing Quality Metrics
**Owner:** Maria Rodriguez
**Period:** FY2025-Q1
**Status:** Active
---
## Executive Summary
| Metric | Status |
|--------|--------|
| Overall Health | 85% |
| Green Metrics | 6 |
| Yellow Metrics | 3 |
| Red Metrics | 0 |
---
## Production Quality
| Metric | Current | Target | Status |
|--------|---------|--------|--------|
| First Pass Yield | 94.2% | 98.0% | 🟢 |
| DPMO | 3,400 | 2,000 | 🟢 |
| Scrap Rate | 1.8% | 1.0% | 🟡 |
Converting to PDF¶
Install Marp CLI:
Generate PDF:
Generate HTML:
Generate PowerPoint:
Themes¶
Marp supports several built-in themes:
| Theme | Description |
|---|---|
default |
Clean, minimal design |
gaia |
Yellow accent, modern |
uncover |
Dark background |
Custom themes can be specified in options:
Status Icons¶
The renderer uses emoji icons for status:
| Status | Icon |
|---|---|
| Green | 🟢 |
| Yellow | 🟡 |
| Red | 🔴 |