zq99299 / gitbook-plugin-anchor-navigation-ex

Supports two navigation mode, title, anchor effect is the default theme, style, follow the website
https://zq99299.gitbooks.io/gitbook-guide/content/chapter/plugin.html
Other
127 stars 39 forks source link

支持md文档H1,H2,H3层级不规则 #38

Closed willionpan closed 5 years ago

willionpan commented 5 years ago

此前版本中,必须依赖md文档中的h1,h2,h3是规则的,即h2必须在h1下,h3必须在h2下,对于不规则的场景不予支持。 提交的MR中支持到不规则场景,例如当遇到h2不在h1之下时,先生成一个空的h1节点,并将该h2放在这个空的h1节点下。在生成html的时候,忽略掉空节点

zq99299 commented 5 years ago

好的,今天我会看下

zq99299 commented 5 years ago

v1.0.14 已发布