From 0bf04e7301944c04e64e611632b1739207c203ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Fri, 27 Feb 2026 02:11:17 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=98=E3=83=83=E3=83=80=E3=83=BCID=E3=81=AE?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Site/Lib/Markdown.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Site/Lib/Markdown.php b/src/Site/Lib/Markdown.php index ad6c945..6de8ba2 100644 --- a/src/Site/Lib/Markdown.php +++ b/src/Site/Lib/Markdown.php @@ -80,6 +80,7 @@ class Markdown { $tableRows = []; $inTable = false; $i = 0; + $headerCount = 1; foreach ($lines as $line) { $i++; @@ -196,7 +197,8 @@ class Markdown { } $level = strlen($m[1]); - $this->html[] = " ".$this->parseInline($m[2]).""; + $this->html[] = " ".$this->parseInline($m[2]).""; + $headerCount++; continue; }