Browse Source

Merge pull request #20 from m-xlsea/master

修复锚点点击不跳转问题
master
Zisbusy 1 year ago
committed by GitHub
parent
commit
436344c455
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Akina/functions.php

+ 1
- 1
Akina/functions.php View File

@ -323,7 +323,7 @@ function createCatalog($obj) {
global $catalog_count;
$catalog_count ++;
$catalog[] = array('text' => trim(strip_tags($obj[3])), 'depth' => $obj[1], 'count' => $catalog_count);
return '<h'.$obj[1].$obj[2].'><a name="cl-'.$catalog_count.'"></a>'.$obj[3].'</h'.$obj[1].'>';
return '<h'.$obj[1].$obj[2].'><a id="cl-'.$catalog_count.'"></a>'.$obj[3].'</h'.$obj[1].'>';
}, $obj);
return $obj;
}

Loading…
Cancel
Save