gitblit icon indicating copy to clipboard operation
gitblit copied to clipboard

Automatic Table Of Contents Generator

Open yuricampolongo opened this issue 6 years ago • 5 comments

  • Generate a Table of contents automatically
  • just put the tag '__TOC__' in your markdown file and gitblit will automatically generate a table of contents based in your headings
  • Make the anchor between the table of contents and the heading using HTML anchor mechanism

yuricampolongo avatar Apr 09 '18 17:04 yuricampolongo

I wrote __TOC__ in the beginning of my markdown file but nothing seems to be generated...

lievencardoen avatar Sep 10 '19 06:09 lievencardoen

Hi @yuricampolongo , should this work? Do I have to configure something in GitBlit?

I wrote a very simple markdown like this

`

__TOC__

# Chapter1

# Chapter2

# Chapter3 `

GitBlit shows it like

` TOC

Chapter1 Chapter2 Chapter3 `

There doesn't seem to be any Table of Contents generated...

Kind regards, Lieven Cardoen

lievencardoen avatar Sep 10 '19 07:09 lievencardoen

That's weird... Are you able to debug the class TableOfContentsGenerator.java? I tested here and it works normally. I just add the TOC tag and that is it...

Did you compile and add the files in your server?

yuricampolongo avatar Sep 10 '19 12:09 yuricampolongo

Well, I just realised that your code was never merged into the master... Isn't there anybody who can do that?

lievencardoen avatar Sep 10 '19 17:09 lievencardoen

I guess the owner no longer update this project. But, you can fork my project and get the changes.

yuricampolongo avatar Sep 10 '19 17:09 yuricampolongo