From 02220ce083cda024487c685ec95c7f948261f2fd Mon Sep 17 00:00:00 2001 From: ckeyer Date: Sun, 30 Aug 2015 01:43:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0h=E6=A0=87=E7=AD=BE=E7=9A=84i?= =?UTF-8?q?d=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/third_party/parsedown/Parsedown.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/third_party/parsedown/Parsedown.php b/app/third_party/parsedown/Parsedown.php index 71a033e..d70b127 100644 --- a/app/third_party/parsedown/Parsedown.php +++ b/app/third_party/parsedown/Parsedown.php @@ -488,6 +488,9 @@ protected function blockHeader($Line) 'name' => 'h' . min(6, $level), 'text' => $text, 'handler' => 'line', + 'attributes' => array( + 'id' => $text, + ), ), );