Skip to content

navigation in pagination #158

Answered by yhatt
ChiMaoShuPhy asked this question in Q&A
Sep 2, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Marp slides are designed for the slide deck like a PowerPoint so we have no support for a page list that is not common in the slide deck.

However, you can set page links into the footer manually just like below:

---
footer: >-
  [1](#1)
  [2](#2)
  [3](#3)
  [4](#4)
  [5](#5)
---

your slides...

Set href to the anchor to specific page number.

Styling example:

<style>
  footer a {
    background: #fff;
    border: 1px solid #000;
    box-sizing: border-box;
    color: #000 !important;
    display: inline-block;
    height: 1.5em;
    line-height: 1;
    padding: 0.25em;
    text-align: center;
    text-decoration: none;
    width: 1.5em;
  }
</style>

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ChiMaoShuPhy
Comment options

@ChiMaoShuPhy
Comment options

@yhatt
Comment options

yhatt Sep 5, 2021
Maintainer

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