Skip to content

Commit

Permalink
fix: 目录内联代码块被错误识别 #12
Browse files Browse the repository at this point in the history
  • Loading branch information
Mereithhh committed Sep 1, 2022
1 parent 717f026 commit 8cd4f56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/website/components/Toc/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function (props: {
ordered={false}
declarative={true}
// updateHashAuto={true}
source={props.content}
source={props.content.replace(/`#/g, "")}
headingTopOffset={56}
onHashChange={(newHash, oldHash) => {
// 判断一下当前激活的元素
Expand Down

0 comments on commit 8cd4f56

Please sign in to comment.