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
292 stars 29 forks source link

Heading priorities cause broken links #18

Closed alphapapa closed 8 years ago

alphapapa commented 8 years ago

I just noticed that headings that have priorities generate invalid links, e.g.: https://github.com/alphapapa/helm-org-rifle/blob/20b890a814acb6889a2adb2b5b7d236396374a5e/notes.org The two links under the Bugs heading are invalid both in GitHub's rendering and in Emacs buffers.

snosov1 commented 8 years ago

Thanks!

Some activity on the issue tracker, while I was away! =)

Anyway, now I'm finally back home and it looks like I have some work to do on the weekend =)

A reproducing example:

* TOC :TOC:
 - [[#bugs][Bugs]]
   - [[#c-negation-only-error][[#C] Negation-only error]]
   - [[#b-helm-org-rifle-tags-matching][[#B] helm-org-rifle tags matching]]

* Bugs
** [#C] Negation-only error
** [#B] helm-org-rifle tags matching
alphapapa commented 8 years ago

Ah, sorry, I should have provided the minimum sample myself. :) Thanks.

snosov1 commented 8 years ago

That's ok. You did the hardest part finding the bug ;)