如果 Markdown 的“块”语法能在 <details> 中工作,而无需空行,那就太好了。我经常在代码片段中遇到这种情况。例如,这种相当直接的语法无法按预期呈现:
<details>
```
# not code
```
</details>
<details>
```
# not code
```
</details>
虽然我最常遇到的是代码块(鉴于我们运行的是一个编程语言论坛),但它也适用于其他 Markdown“块”语法:
<details><summary>例如,标题</summary>
# not headers
This is the code for this block:
````md
<details><summary>例如,标题</summary>
# not headers
This is the code for this block:
```md
(stack overflow)
```
</details>
还有引用块
> this should be a quote, I'd expect这是预期的吗?