iotexproject / dev-portal-content

Content for iodev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make TOC header level aware and collapsable

as-iotex opened this issue · comments

If the article contains a lot of headers, then the table of contents becomes too big.
At the moment all the headers in the markdown file are "flattened". Hence they use a lot of vertical space, making the left side panel vertically scrollable.
It would be great if the left panel could show headers indented by header level. And also make them collapsable.
See an example of this issue in https://developers.iotex.io/posts/deploy-a-machinefi-dapp

@nicky-ru ip to what level headers are displayed?

@simonerom right now only h1, h2, h3

fixed