Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用石板https://github.com/lord/slate来获取 API 文档。使用 slate,将降价文件转换为 HTML。我需要在最终的 HTML 页面中有可折叠的部分。如果你让我知道最好的方法,我很感激?
据我所知,markdown 或 slate 不直接支持这一点。一种选择可能是将<summary>和<details>html 标签与您的降价混合,但是您必须自己设置样式以匹配 slate 的样式。
<summary>
<details>