chiaweilee / umi-plugin-md

🍚 Markdown(*.md) component plugin for umi.
https://chiaweilee.github.io/umi-plugin-md/
MIT License
16 stars 2 forks source link

H1 H2解析完成,h1 没有id,无法导航 #4

Closed xiaohuoni closed 5 years ago

xiaohuoni commented 5 years ago

比如 #Api 希望解析为 <h1 id='Api'>Api</h1>

chiaweilee commented 5 years ago

是需要给 H1 H2 H3 加 锚点(Anchor)吗?

我会在近期迁移过来,从 https://github.com/chiaweilee/vue-markdown-docs/blob/master/src/core/utils.js#L18 https://github.com/chiaweilee/vue-markdown-docs/blob/master/src/core/utils.js#L47

xiaohuoni commented 5 years ago

棒,因为我正好在构建官网,所以期望能尽快处理,感谢。