我正在使用 Github 页面发布课程笔记。我从主页 (index.md) 链接到包含注释版本链接列表的其他页面。我尝试使用
<details>
标签来简化所有页面,以便我可以将所有链接放在一页上,同时最初隐藏列表。下面是我的 Markdown 代码的示例:
[class1Notes.pdf](https://github.com/.../raw/main/class1Notes.pdf)
<details>
<summary>class1 Annotated Notes</summary>
* [notes_1p1_annotated.pdf](https://github.com/.../raw/main/notes_1p1_annotated.pdf)
* [notes_1p2_annotated.pdf](https://github.com/.../raw/main/notes_1p2_annotated.pdf)
</details>
我正在使用 ReText 手动编辑/预览
index.md
中的 Markdown 代码,它看起来像这样:
我还尝试直接使用 HTML 构建列表,但这些列表在 Github 页面上看起来不正确。我是否正确使用了
<details>
标签,还是我完全误解了如何使用它?
我设法解决了我的问题。我在 Github 上的一篇有关 的文章中发现了 this 评论,现在我意识到 Markdown 在
<details>
标签内不起作用。现在我有:
<h2> Class 1</h2>
[class1Notes.pdf](https://github.com/.../raw/main/class1Notes.pdf)
<details>
<summary>class1 Annotated Notes</summary>
<ul>
<li><a href="https://github.com/.../raw/main/notes_1p1_annotated.pdf">notes_1p1_annotated.pdf</a></li>
<li><a href="https://github.com/.../raw/main/notes_1p1_annotated.pdf">notes_1p2_annotated.pdf</a></li>
</ul>
</details>
哪个是正确!