浏览代码

【修复】文章内标签跳转选择器语法

PJ568 1 年之前
父节点
当前提交
6dc899631c
共有 3 个文件被更改,包括 3 次插入 和 4 次删除
  1. 1 1
      Cargo.toml
  2. 2 2
      index.html
  3. 0 1
      index.min.html

+ 1 - 1
Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "markdown-html"
-version = "1.6.4"
+version = "1.6.5"
 edition = "2021"
 
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

+ 2 - 2
index.html

@@ -1,7 +1,7 @@
 <!doctype html>
 
 <html>
-<markdown-html version="1.6.4" author="PJ568" repo="https://github.com/PJ-568/markdown.html"
+<markdown-html version="1.6.5" author="PJ568" repo="https://github.com/PJ-568/markdown.html"
   license="CC BY-SA 4.0 International"></markdown-html>
 
 <head>
@@ -479,7 +479,7 @@
           darkmode.toggle();
         } else if (event.target.closest('.translate-switch')) {
           translate.changeLanguage(translate.language.getLocal());
-        } else if (event.target.closest('a[href^=#]')) {
+        } else if (event.target.closest('a[href^="#"]')) {
           // 目录平滑移动
           const href = event.target.getAttribute('href');
           if (href !== '#') {

文件差异内容过多而无法显示
+ 0 - 1
index.min.html


部分文件因为文件数量过多而无法显示