toc-org icon indicating copy to clipboard operation
toc-org copied to clipboard

Compatibility with Gitlab markdown

Open csantosb opened this issue 8 years ago • 6 comments

Hi,

It would be great if, in addition to github, this package might generate tables of contents useful when hosting projects in gitlab.

Thanks,

csantosb avatar Jun 30 '16 12:06 csantosb

I would love to have that, too. However, I'm not a frequent GitLab user. Do you care to submit a PR with the implementation? The only thing you need to do is to implement a function toc-org-hrefify-gl, similar to toc-org-hrefify-gh that converts text to "href ids". I.e. for github it downcases everything, replaces spaces with -, etc.

snosov1 avatar Jun 30 '16 13:06 snosov1

It seems there is an issue at Gitlab side

I'll wait until they fix it.

csantosb avatar Jul 01 '16 09:07 csantosb

Okey-dokey!

snosov1 avatar Jul 01 '16 10:07 snosov1

It is sad, but Gitlab still does not properly support a way of dealing with table of contents for org-mode. It passed more than 6 years and the pending issue on Gitlab was moved, but not resolved.

Asked about it on Gitlab forum without any answer and unfortunately toc-org didn't work either. It is a Gitlab issue, but nobody seems to care about it.

nephewtom avatar Feb 13 '23 20:02 nephewtom

Yeah, I guess, nobody really cares enough about it.

BTW, toc-org has some support for markdown. Is it a plausible workaround?

snosov1 avatar Feb 14 '23 08:02 snosov1

For Markdown, I recall to have used markdown-toc.

Unfortunately, have a bunch of Org mode files, and like to document with it. This is fine for Github, but not for Gitlab... Sigh! For Gilab, will write directly on Markdown, or export to markdown from org-mode.

Anyway, thank you for writing toc-org! :wink:

nephewtom avatar Feb 14 '23 13:02 nephewtom