gitblit
gitblit copied to clipboard
Automatic Table Of Contents Generator
- 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
I wrote __TOC__ in the beginning of my markdown file but nothing seems to be generated...
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
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?
Well, I just realised that your code was never merged into the master... Isn't there anybody who can do that?
I guess the owner no longer update this project. But, you can fork my project and get the changes.