snosov1 / toc-org

toc-org is an Emacs utility to have an up-to-date table of contents in the org files without exporting (useful primarily for readme files on GitHub)
GNU General Public License v3.0
287 stars 29 forks source link

is there anyway to specify link href for headline? #67

Closed PoiScript closed 4 years ago

PoiScript commented 4 years ago

I noticed that toc-org will always create a href from the headline name even after providing a CUSTOM_ID property:

* toc :TOC:
- [[#headline][headline]]

* headline
:PROPERTIES:
:CUSTOM_ID: id
:END:

I'm wondering is there anyway to specify it?

snosov1 commented 4 years ago

Hey, @PoiScript !

Unfortunately, no. The thing is - GitHub doesn't handle properties and sticks to his own way of hrefifying headings. So, I see very little value in supporting it. Frankly, I see little value in it even if it wasn't for GitHub =)