Skip to content

Commit

Permalink
fix: disable markdown toc on default (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuycy committed Feb 28, 2024
1 parent ecf2a49 commit 5774912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type TocItem = { indent: number; text: string; tagName: string; key: string }
const [isTocVisible, setVisible] = createSignal(false)
const [isTocDisabled, setTocDisabled] = createStorageSignal(
"isMarkdownTocDisabled",
false,
true,
{
serializer: (v: boolean) => JSON.stringify(v),
deserializer: (v) => JSON.parse(v),
Expand Down

0 comments on commit 5774912

Please sign in to comment.