From fab1b46b85f727d3b84d5a7d32a9ed48f8d1e861 Mon Sep 17 00:00:00 2001 From: trendschau Date: Tue, 23 Apr 2024 15:05:01 +0200 Subject: [PATCH] V2.4.2 fix toc if headlines not strict sequential order --- .../Extensions/ParsedownExtension.php | 50 +++++++++++-------- system/typemill/author/css/custom.css | 6 ++- system/typemill/settings/defaults.yaml | 2 +- 3 files changed, 33 insertions(+), 25 deletions(-) diff --git a/system/typemill/Extensions/ParsedownExtension.php b/system/typemill/Extensions/ParsedownExtension.php index 105eed4..410e5f3 100644 --- a/system/typemill/Extensions/ParsedownExtension.php +++ b/system/typemill/Extensions/ParsedownExtension.php @@ -425,46 +425,52 @@ class ParsedownExtension extends \ParsedownExtra } - # build the markup for table of contents + # build the markup for table of contents, thanks gtp for fixing! public function buildTOC($headlines) { $markup = '