Skip to content

Anchor links are not generated #38

Answered by allejo
axilleas asked this question in Q&A
Discussion options

You must be logged in to vote

Take a look at the rendered page and inspect the headings,

<h3>
  <a class="title-link" name="configuration-variables" href="#configuration-variables"></a> Configuration Variables
</h3>

The IDs are being created as <a> tags inside of the <h3>. The way this snippet works is that it relies on the <h1> - <h6> tags having the id attribute.

You would have to modify this project to instead look for <a> tags and then pull out the name attribute values.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by allejo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #38 on December 14, 2020 03:25.