Skip to content

Commit 3265988

Browse files
committed
1
1 parent 4bb4197 commit 3265988

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/content/docs/astro-starlight/astro-starlight-encrypted.mdx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import PasswordWrapper from '@components/PasswordWrapper.astro';
77

88
<PasswordWrapper password="123456" passwordSubtitle="密码:123456">
99

10-
# 这是加密的内容
10+
## 这是加密的内容
1111

1212
这段内容只有在输入正确密码后才能查看。
1313

@@ -17,10 +17,5 @@ import PasswordWrapper from '@components/PasswordWrapper.astro';
1717
- 客户端加密/解密
1818
- 自动保存密码到 localStorage
1919

20-
## 使用方法
21-
22-
在 MDX 文件的 front-matter 中添加 `password` 字段,然后使用 `PasswordWrapper` 组件包装需要加密的内容。
23-
24-
2520
</PasswordWrapper>
2621

0 commit comments

Comments
 (0)