Skip to content

The command --toc-depth doesn't change the depth (md->pdf) #9861

Closed
@Thanatos0173

Description

@Thanatos0173

Reproducible steps :

  1. Create a file with the content:
---
title: Title
subtitle: Subtitle
lang: fr-FR
author: "Author"
theme: "Boadilla"
colortheme: "dolphin"
fonttheme: "structurebold"
aspectratio: 43
fontsize: 14pt
linkstyle: bold
---

# Section One

## Subsection One

Content

## Subsection Two

Content

# Section Two

## Subsection One

Content

## Subsection Two

Content

Compile using :

pandoc -t beamer --toc-depth=5 --toc  <file.md> -o <file.pdf>

Output:
The toc slide is :

  1. Section One
  2. Section Two

Expected:
The toc slide should be:

  1. Section One
    1.1. Subsection One
    1.2. Subsection Two
  2. Section Two
    1.1. Subsection One
    1.2. Subsection Two

Version :

pandoc 3.2
Features: +server +lua
Scripting engine: Lua 5.4
User data directory: /home/thanatos/.local/share/pandoc
Copyright (C) 2006-2024 John MacFarlane. 
Web: https://pandoc.orgThis is free software; see the source for copying conditions. There is nowarranty, not even for merchantability or fitness for a particular purpose.

OS :
Linux, Archcraft

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions