org-make-toc
org-make-toc copied to clipboard
Add option to make links work in both Github and Emacs org mode by inserting Custom Id property
Hi, If a custom id is inserted into the property drawer in each heading. The links will work in Org-mode. So it might be desirable for some users to get this behaviour where the tool inserts the CUSTOM ID property in each heading. Any thoughts on this?
For my use case I generally have a lot of properties customization inside my headings already so one line of CUSTOM ID won't hurt instead of me manually having to put it in each heading.
Hi,
I haven't tested that solution, but if it works, I've no objection to supporting it in this package. I'm not sure if I would use it, so I don't know if I'd code it myself anytime soon.
@hemanta212 Custom id links won't work on github, will they?
@noctuid Custom id links implementation is addition on top of existing way, With current way we have support for github but not org mode. Adding custom id links will enable the links to work on org mode. Thus, supporting both github and org-mode.
Ah, I was thinking of UUID/normal ID links. This approach seems to work fine. I opened a PR.
Finally merged. Please let me know if it works for you. Thanks.
Can confirm, it works great!, Thank you so much @alphapapa and @noctuid 🙏
@hemanta212 Thanks.