From 07d99763d3458a11a5b37b2f95ef73e9f6f3415f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Petazzoni?= Date: Thu, 9 Nov 2017 13:41:29 -0800 Subject: [PATCH] Fix back-to-toc links --- slides/markmaker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slides/markmaker.py b/slides/markmaker.py index 2b6309bd..02cbc456 100755 --- a/slides/markmaker.py +++ b/slides/markmaker.py @@ -124,7 +124,7 @@ def gentoc(tree, path=()): if len(path) == 0: return "\n---\n".join(gentoc(subtree, path+(i+1,)) for (i,subtree) in enumerate(tree)) elif len(path) == 1: - chapterslide = "## Chapter {}\n\n".format(path[0]) + chapterslide = "name: toc-chapter-{n}\n\n## Chapter {n}\n\n".format(n=path[0]) for (i,subtree) in enumerate(tree): chapterslide += gentoc(subtree, path+(i+1,)) + "\n\n" chapterslide += ".debug[(auto-generated TOC)]"