If you write in Obsidian and want to copy-paste into the forum, you'll notice the forum editor has this hidden details feature:
总结
此文本将被隐藏
[details="总结"]
此文本将被隐藏
[/details]
But Obsidian can't do that. However, however — we can use
Collapsible calloutClick to collapse
to get folding, and it works in both Obsidian and the forum:
> [!faq]- Can callouts be collapsed?
> Here, the plus sign means the callout is expanded by default, and the minus sign means it's collapsed
Plus and minusPlus +[!faq]+ 可折叠标注Minus -[!faq]- 可折叠标注
The above uses nesting — yep, you can nest as many levels as you want.
Source below ↓
> [!faq]+ 加号和减号
>
>>
>>[!faq]+ 加号+
>>
>>>```
>>>[!faq]+ 可折叠标注
>>>```
>>
>
>>[!faq]- 减号-
>>
>>>```
>>>[!faq]- 可折叠标注
>>>```
Here's how it looks in Obsidian:
如果你在Obsidian里写作,想复制粘贴到论坛,但是你会发现论坛编辑有隐藏详细信息逐这个功能
总结
此文本将被隐藏
[details="总结"]
此文本将被隐藏
[/details]
但是这个在Obsidian里不能实现,但是但是
我们可以用
可折叠标注点击折叠
来实现折叠,Obsidian和论坛通用
> [!faq]- 标注可以折叠吗?
> 其中,加号表示标注默认展开,减号表示标注收起
加号和减号加号+[!faq]+ 可折叠标注减号-[!faq]- 可折叠标注
上面用了嵌套,是的,你可以多层嵌套
源码↓
> [!faq]+ 加号和减号
>
>>
>>[!faq]+ 加号+
>>
>>>```
>>>[!faq]+ 可折叠标注
>>>```
>>
>
>>[!faq]- 减号-
>>
>>>```
>>>[!faq]- 可折叠标注
>>>```
Obsidian中效果如图
Translated by AI from 简体中文Original (简体中文)
2
1
1 replies
Sort order