markup icon indicating copy to clipboard operation
markup copied to clipboard

Improve rendering of TOC in AsciiDoc

Open igorsantos07 opened this issue 4 years ago • 2 comments

Currently, TOC rendering is just a plain text line with a list of links. In a quick glance, it looks really just like a list of links, thrown there, not an actual table of contents. I tried to use :toc-class: to force it to include Box Box-class, but that didn't work either.

Please, make the TOC look like a TOC (bonus if it's collapsable).

Additional bonus: add a way to make it show in the sidebar with :toc: right (or by default).

igorsantos07 avatar Jun 26 '21 21:06 igorsantos07

Currently, TOC rendering is just a plain text line with a list of links. In a quick glance, it looks really just like a list of links, thrown there, not an actual table of contents. I tried to use :toc-class: to force it to include Box Box-class, but that didn't work either.

Please, make the TOC look like a TOC (bonus if it's collapsable).

Additional bonus: add a way to make it show in the sidebar with :toc: right (or by default). is tool of

Jesus-Cortez-Matias-7 avatar Aug 05 '21 08:08 Jesus-Cortez-Matias-7

GitHub already supports a floating TOC for AsciiDoc documents that acts like a true TOC. See https://github.com/asciidoctor/asciidoctor#readme for an example. Click on the icon on the left. It's not exactly what you're asking about, but I just wanted to make sure you were aware of it.

mojavelinux avatar Aug 05 '21 08:08 mojavelinux