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

empty href #34

Closed
eskema opened this issue Mar 16, 2017 · 3 comments
Closed

empty href #34

eskema opened this issue Mar 16, 2017 · 3 comments

Comments

@eskema
Copy link

eskema commented Mar 16, 2017

Hi, I'm just trying your plugin but something ins't working like it should. The TOC references are returning empty:
<a data-scroll="" href="#" class="toc-link node-name--H2 is-active-link">My H2 Heading</a>
and the headings have no id attached to them.

Any idea why?

@tscanlin
Copy link
Owner

tscanlin commented Mar 16, 2017

Toc references are based on the heading id's so that's why they are empty. Are you getting the headings from markdown or from a regular page? If its from markdown, what package(s) are you using?

@eskema
Copy link
Author

eskema commented Mar 16, 2017

Oh, sorry I thought it would generate the id automatically. I'll work it out.
Thank you for the quick response.

@eskema eskema closed this as completed Mar 16, 2017
@tscanlin
Copy link
Owner

No worries! :)

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