toc-org
toc-org copied to clipboard
Compatibility with Gitlab markdown
Hi,
It would be great if, in addition to github, this package might generate tables of contents useful when hosting projects in gitlab.
Thanks,
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.
Okey-dokey!
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.
Yeah, I guess, nobody really cares enough about it.
BTW, toc-org
has some support for markdown. Is it a plausible workaround?
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: