Skip to content

Automatic header? #212

Answered by yhatt
jtppragg asked this question in Q&A
Nov 11, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Try using header instead of _header. You can change the header for subsequent slides at once.

<!-- header: Heading -->
# Heading

page 1

---

page 2

---

page 3

---

<!-- header: Next section -->
# Next section

page 4

---

page 5

---

page 6

In this example, the header content "Heading" has in 1-3 slides, and "Next section" has in 4-6.

You have to need to write a Marp plugin if don't want defining header directives <!-- header: xxx -->.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jtppragg
Comment options

Answer selected by jtppragg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants