Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not support multiple headings having the same name #25

Open
quarkQuark opened this issue Aug 28, 2022 · 1 comment
Open

Does not support multiple headings having the same name #25

quarkQuark opened this issue Aug 28, 2022 · 1 comment

Comments

@quarkQuark
Copy link

When used in a file where two or more headings have the same name, the generated links use the same reference for each. For example, running org-make-toc on

* Heading
* Heading

gives

- [[#heading][Heading]]
- [[#heading][Heading]]

Instead, it should generate something like

- [[#heading-1[Heading]]
- [[#heading-2][Heading]]
@alphapapa
Copy link
Owner

It's not quite that simple. There are two "backends" supported: Org's in-Emacs rendering, and GitHub's org-ruby-based renderer. This package does not give headings anchor IDs, it only generates links to the anchors that are expected to be given to the headings by the backends. So if we added numbers to uniqify the links, what anchors would they point to, since those are out of our control?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants