From a0a3d74fd495d27fffae023b79537668a89e90e8 Mon Sep 17 00:00:00 2001 From: crossdark Date: Thu, 3 Oct 2024 21:36:17 +0800 Subject: [PATCH] =?UTF-8?q?1.1.2=E7=9B=AE=E5=BD=95=E5=A5=BD=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CrossDown/Core.py | 2 +- README.html | 104 +++++++++++++++++++++++----------------------- 2 files changed, 53 insertions(+), 53 deletions(-) diff --git a/CrossDown/Core.py b/CrossDown/Core.py index a4ab04f..e421854 100644 --- a/CrossDown/Core.py +++ b/CrossDown/Core.py @@ -145,7 +145,7 @@ class Tag(Treeprocessor): elif header.tag == 'ul': # 是无序列表 for i in header: # 遍历列表内容 try: - i[0].set('id', i[0].text.split(' ')[0]) # 是目录 + i[0].set('href', '#' + i[0].text.split(' ')[0]) # 是目录 except IndexError: pass # 是普通的无序列表 diff --git a/README.html b/README.html index c971d65..8531817 100644 --- a/README.html +++ b/README.html @@ -28,17 +28,17 @@