Skip to content
Discussion options

You must be logged in to vote

I just tested this, it works:

---
title: "Presentation"
format:
  revealjs:
    navigation-mode: vertical
filters:
  - relevel_headings.lua
---

# (horizontal) Section heading

## Horizontal slide A

### Vertical slide A1

### Vertical slide A2

## Horizontal slide B

relevel_headings.lua:

function Header(heading)
  if heading.level == 3 then
    heading.level = 2
    return heading
  elseif heading.level == 2 then
    heading.level = 1
    return heading
  end
  return heading
end

Replies: 1 comment 14 replies

Comment options

You must be logged in to vote
14 replies
@mcanouil
Comment options

mcanouil Jun 8, 2023
Collaborator

@cscheid
Comment options

@mcanouil
Comment options

mcanouil Jun 8, 2023
Collaborator

@cscheid
Comment options

Answer selected by seapat
@cscheid
Comment options

@mcanouil
Comment options

mcanouil Jun 8, 2023
Collaborator

@cderv
Comment options

cderv Jun 9, 2023
Maintainer

@mcanouil
Comment options

mcanouil Jun 9, 2023
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
revealjs Issues with the revealjs format
4 participants