# 超过两个层级的\[details\]

**URL:** <https://meta.discourse.org/t/more-than-two-levels-of-details/152421>\
**Category:** Support\
**Created:** [2020年五月23日 08:39 UTC](https://meta.discourse.org/t/more-than-two-levels-of-details/152421 "2020-05-23T08:39:19Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://meta.discourse.org/u/EricGT)\
**Post date:** [2020年五月23日 14:05 UTC](https://meta.discourse.org/t/more-than-two-levels-of-details/152421/5 "2020-05-23T14:05:05Z")

</div>

我常尝试向希望学习高级 Markdown 或了解某些高级 HTML 功能实现方式的用户传授一个技巧：使用页面的 `raw` 视图。

这是前一篇帖子的 URL：`https://meta.discourse.org/t/more-than-two-levels-of-details/152421/4`

这是该帖子作为 `raw` 视图的 URL：`https://meta.discourse.org/raw/152421/4`

* * *

如果你在 PostgreSQL 的 `posts` 表中查看列，会发现有两个列用于存储帖子的文本：`raw` 和 `cooked`。`raw` 列保存的是用户输入的内容，通常包含用户输入的 Markdown 和 HTML。

然而，当你正常查看帖子时，它已经被“烹制”（处理）过，因此你无法看到原始文本，即使使用浏览器查看 HTML 源代码的功能也无法直接看到。

有时，你可以通过编辑菜单栏中的菜单项插入一些模板 HTML，但有时则必须手动完成。

希望这能帮到你（HTH）。

* * *

**编辑**

致所有主题创作者：

如果能有一个主题，添加一个按钮让用户以原始格式查看帖子，那就太好了。该主题应提供一个配置选项，允许根据信任等级或分类来控制该按钮的可见性。

* * *

**编辑**

对于希望看到 [原始帖子按钮](https://meta.discourse.org/t/raw-post-button/152542) 主题（如下所述）在更复杂页面上运行的用户，请参考 SWI-Prolog 的 Discourse 页面：[用于测试已安装组件主题和插件的帖子](https://swi-prolog.discourse.group/t/post-for-testing-installed-component-themes-and-plugins/2358)

注意：由于匿名用户无法看到原始按钮，你需要先注册登录。

---

_[View the full topic](https://meta.discourse.org/t/more-than-two-levels-of-details/152421)._
