为什么有的人 markdown 的 heading 从 `##` 开始

为什么有的人 markdown 的 heading 从 ## 开始

TL;DR: 因为一级标题用来表示文章的 title 了。

看到过很多文章的 heading 都是从 <h2> (对应 markdown 里面的 ##)开始,但不知道为什么,明明从 # 更方便 为什么要用 ## 呢?

在回答这个问题之前要弄清楚文章中 title 和 head 的区别,下面是 ChatGPT 的回答:

In the context of a written passage or document, "title" usually refers to the name or heading that is used to identify the entire work。

文章的 title 通常是对文章工作的定义和概括,人们在阅读这篇文章之前只能看到文章的 title,好的 title 能够让人立马弄清楚是否要阅读这篇文章。(这里鄙视一下标题党,标题党行为会浪费别人的时间)

而文章的 heading 是对文章的段落分层级,告诉读者这一段要讨论的话题。

而问题就来了,markdown 能够表示 heading,但是没有语法用来表示 title,所以有的人就用一级标题来表示文章的 title,所以文章的 heading 就只能从二级标题开始了。


2023/3/30 更新:

发现思源笔记是用 front matter 来记录 title 的:
obsidian 导出的时候根本不会保留 title
notion 是将 title 当作标题1 (即 #) 的

posted @ 2023-03-25 12:01  沐灵_hh  阅读(51)  评论(0编辑  收藏  举报