-
Notifications
You must be signed in to change notification settings - Fork 19
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
Followed steps but nothing is displaying #7
Comments
+1 |
Thanks - can you provide any other info to help troubleshoot, like your Eleventy config file? |
A common reason for nothing to display is that headings don't have The README has been updated with instructions setting up Eleventy's Markdown compiler to add https://github.com/jdsteinbach/eleventy-plugin-toc#2-make-sure-your-headings-have-anchor-ids |
For some odd reason (and this is happening with other plugins as well), even when my headers have IDs I need to use markdownItAnchor and markdownIt in order for this plugin to work. I am not 100% why but this is a project that needs to be released quickly so I don't have time to investigate further but I thought I would share. |
@helmutgranda As mentioned on #2, version 1.1.0 contains several fixes to options parsing and allows |
Just bumping this that I'm running into the same issue still :( |
Thanks @versipellis - can you provide a simplified test case where you're seeing this problem? |
Thanks @jdsteinbach, this is my .eleventy.js:
And this is my template I'm using:
I can confirm that the header IDs do show up, as does the |
Just wanted to bump here to see if you had any thoughts - thanks! |
Thanks @versipellis - I did a little debugging to find out what's happening. The issue you're seeing is related to the order in which The two TOC plugins run by providing an Eleventy Neither this plugin ( |
Gotcha, thanks a ton @jdsteinbach - that's really helpful to know, and explains why I couldn't figure out what was going on! Do you have any suggestions on something similar to |
I did steps 1-3, but {{ content | toc }} doesn't display anything. Any guesses about what I'm doing wrong? My headers all have IDs.
The text was updated successfully, but these errors were encountered: