You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add slide layout system with title and default layouts
Parse <!-- layout: title --> directives in slide content to switch
between centered title layout and left-aligned default layout.
Title slides use larger headings and centered text, matching the
common "title slide" pattern from PowerPoint/Keynote.
Copy file name to clipboardExpand all lines: README.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,6 +112,26 @@ graph TD
112
112
```
113
113
````
114
114
115
+
### Slide layouts
116
+
117
+
Use `<!-- layout: title -->` to switch a slide to the title layout (centered, larger heading). Without the directive, slides use the default layout (left-aligned content).
118
+
119
+
```md
120
+
<!-- layout: title -->
121
+
122
+
# My Presentation
123
+
124
+
A subtitle or tagline
125
+
126
+
---
127
+
128
+
# Regular Slide
129
+
130
+
This uses the default left-aligned layout.
131
+
```
132
+
133
+
Available layouts: `title`, `default` (implicit).
134
+
115
135
### Fragment lists
116
136
117
137
Add `<!-- fragment -->` before a list to reveal items one at a time with arrow keys.
@@ -140,6 +160,7 @@ Press P to open it.
140
160
141
161
### Feature summary
142
162
163
+
- Slide layouts -- `<!-- layout: title -->` for centered title slides, default for content slides
0 commit comments