mirror of
https://github.com/NohamR/knowledge-kit.git
synced 2026-05-25 12:27:15 +00:00
docs: 批量博文
This commit is contained in:
17
Chapter7 - Geek Talk/7.14.md
Normal file
17
Chapter7 - Geek Talk/7.14.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# Markdown 的妙用
|
||||
|
||||
## 1. 代码折叠功能
|
||||
|
||||
有时候我们会在文章上插入一些代码,但是这样的情况下我们的文章整体会显得很长,所以为了保证阅读性比较好,我们最好是将代码折叠起来,有需要的时候再点击展开。
|
||||
|
||||
我们需要使用 **\<details></details>** 和 **\<summary></summary>** 标签。如下所示
|
||||
|
||||
|
||||
|
||||
<details>
|
||||
<summary>代码详情</summary>
|
||||
|
||||
```Objective-c
|
||||
NSLog(@"hello world.");
|
||||
```
|
||||
</details>
|
||||
Reference in New Issue
Block a user