# 支持更多的md代码块样式与高亮

**URL:** <https://meta.appinn.net/t/topic/72051>\
**Category:** 站点反馈\
**Created:** [2025 年6 月 7 日 05:28 UTC](https://meta.appinn.net/t/topic/72051 "2025-06-07T05:28:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

作者： ![CCR](https://meta-edge.appinn.com/user_avatar/meta.appinn.net/ccr/32/68442_2.png) [@CCR](https://meta.appinn.net/u/CCR)\
发布日期： [2025 年6 月 7 日 05:28 UTC](https://meta.appinn.net/t/topic/72051/1 "2025-06-07T05:28:07Z")

</div>

如题，例如 log，tex之类的现在没还没支持

可能有用的链接：

> **[About GitHub Pages and Jekyll - GitHub Docs](https://docs.github.com/en/pages/setting-up-a-github-pages-site-with-jekyll/about-github-pages-and-jekyll#syntax-highlighting)**
>
> Jekyll is a static site generator with built-in support for GitHub Pages.

> <https://github.com/github-linguist/linguist/blob/main/vendor/README.md>

> **[Creating and highlighting code blocks - GitHub Docs](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks)**
>
> Share samples of code with fenced code blocks and enabling syntax highlighting.

> **[GitHub - github-linguist/linguist: Language Savant. If your repository's language is...](https://github.com/github-linguist/linguist)**
>
> Language Savant. If your repository's language is being reported incorrectly, send us a pull request!

---

<div class="post-metadata">

作者： ![a523084467](https://meta-edge.appinn.com/user_avatar/meta.appinn.net/a523084467/32/7534_2.png) [@a523084467](https://meta.appinn.net/u/a523084467)\
发布日期： [2025 年6 月 8 日 04:44 UTC](https://meta.appinn.net/t/topic/72051/2 "2025-06-08T04:44:07Z")

</div>

希望能给小标题加上id，这样就能更方便地在同一贴内跳转了  
Markdown:

```md
## Test
[Go to Test](#Test)

```

HTML:

```html
<h2 id="Test">Test</h2>
<a href="#Test">Go to Test</a>

```

---

<div class="post-metadata">

作者： ![VictoryRoad](https://meta-edge.appinn.com/user_avatar/meta.appinn.net/victoryroad/32/58964_2.png) [@VictoryRoad](https://meta.appinn.net/u/VictoryRoad)\
发布日期： [2025 年6 月 8 日 06:14 UTC](https://meta.appinn.net/t/topic/72051/3 "2025-06-08T06:14:56Z")

</div>

> [@a523084467](#):
>
> 希望能给小标题加上id

其实已经实现了。把鼠标悬停在标题上，标题左侧会出现一个锁链图标（🔗）

![未命名.png](https://h1.appinn.me/file/1749363244885_%E6%9C%AA%E5%91%BD%E5%90%8D.png)

右键点击该图标，再点击 “复制链接”，即可得到指向该章节的 URL。

---

<div class="post-metadata">

作者： ![a523084467](https://meta-edge.appinn.com/user_avatar/meta.appinn.net/a523084467/32/7534_2.png) [@a523084467](https://meta.appinn.net/u/a523084467)\
发布日期： [2025 年6 月 8 日 06:28 UTC](https://meta.appinn.net/t/topic/72051/4 "2025-06-08T06:28:14Z")

</div>

原来如此，我直接在f12看h2标签里没id，就一直以为没有此功能……

---

<div class="post-metadata">

作者： ![Qingwa](https://meta-edge.appinn.com/user_avatar/meta.appinn.net/qingwa/32/58632_2.png) [@Qingwa](https://meta.appinn.net/u/Qingwa)\
发布日期： [2025 年6 月 8 日 07:05 UTC](https://meta.appinn.net/t/topic/72051/5 "2025-06-08T07:05:56Z")

</div>

tex 有了

```LaTeX
\int_{a}^{b} x^2dx

```

````auto
``` LaTeX
\int_{a}^{b} x^2dx

````

就行了。

log 是什么格式？这里是所有能支持的格式：

> <https://github.com/highlightjs/highlight.js/blob/main/SUPPORTED_LANGUAGES.md>
