Markdown jumps to the title of this article

1. You can only jump in Markdown files

1. Because the title of the Markdown file is an anchor point of Markdown

Headings at any level can be directly targeted as anchors. If the title is relatively fixed (not often changed), you can directly use the title as an anchor.

1、这是一个标题 1
[这个地方不错,如果想看可点击跳转文件](# 标题1)

2、这是一个标题 2



### 标题1
123456


### 标题2
qwert

2. If there are spaces and special characters in the title, process it according to the following rules:

  • Convert uppercase letters to lowercase
  • Delete all special characters
  • Change spaces to dashes (-)

2. Use HTML language to jump in Markdown files

<a href="#lable">点击跳转到下面</a>
......
......
......
......
......
<span id="lable">到下面了</span>

Demonstration:
Click to jump to the following
...
...
...
... to
the
following

Guess you like

Origin blog.csdn.net/weixin_44778232/article/details/127597846