From 3fbafc6e4901846391a6fbda4267dc471e2a04ae Mon Sep 17 00:00:00 2001 From: squidfunk Date: Thu, 23 Apr 2026 12:09:22 +0200 Subject: [PATCH] feature: render section title with markup in table of contents Signed-off-by: squidfunk --- dist/partials/toc-item.html | 10 +++------- src/partials/toc-item.html | 14 +++----------- 2 files changed, 6 insertions(+), 18 deletions(-) diff --git a/dist/partials/toc-item.html b/dist/partials/toc-item.html index f9ec6db3..d2cb718f 100644 --- a/dist/partials/toc-item.html +++ b/dist/partials/toc-item.html @@ -4,13 +4,9 @@
  • - {% if toc_item.typeset %} - - {{ toc_item.typeset.title }} - - {% else %} - {{ toc_item.title }} - {% endif %} + + {{ toc_item.content }} + {% if toc_item.children %} diff --git a/src/partials/toc-item.html b/src/partials/toc-item.html index b909d42a..843d482e 100644 --- a/src/partials/toc-item.html +++ b/src/partials/toc-item.html @@ -27,17 +27,9 @@
  • - - - {% if toc_item.typeset %} - - {{ toc_item.typeset.title }} - - - - {% else %} - {{ toc_item.title }} - {% endif %} + + {{ toc_item.content }} +