Skip to content
#

webpack4

Here are 2,533 public repositories matching this topic...

ka1n4t
ka1n4t commented Mar 25, 2020

老哥你好,好像有个bug

Markdown的 [toc]语法是根据后面的Markdown节点自动生成一个目录,比如

[TOC]
#header1

会在header1的前面生成一个header1超链接,指向#header1,点击之后自动跳到header1锚点。而header1标题的位置就是一个超链接,比如<a href="#header1">xxx</a>

但是你这里的实现好像是把目录的锚点用一串数值代替了,header1处的超链接变成了<a href="#1234567890">xxx</a>。因此,如果点击[toc]自动生成的目录的话,无法跳到对应的锚点。

Improve this page

Add a description, image, and links to the webpack4 topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the webpack4 topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.