Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic Table Of Contents Generator #1281

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yuricampolongo
Copy link

@yuricampolongo yuricampolongo commented Apr 9, 2018

  • 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

- Generate a Table of contentes 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
@lievencardoen
Copy link

lievencardoen commented Sep 10, 2019

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

@lievencardoen
Copy link

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

@yuricampolongo
Copy link
Author

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?

@lievencardoen
Copy link

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

@yuricampolongo
Copy link
Author

yuricampolongo commented Sep 10, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants