Discussions » Greasy Fork Feedback
Is it possible to create navigable links for an index?
Like this?
Like [this](#comment-648766)?
It works when I click yours, but it's not working for me in my script description. I use this for the link:<href="#doc">Documentation</a>
..and this for the target:[Documentation](#doc)
Clicking it just does nothing.
For the target of the link, you should be using a name attribute without the #, not a href attribute. And note that it doesn't have to be an <a> element either.
<div name="testlink">Link goes here</div>
[Link](#testlink)
i don't get it. also, i see why your original worked. it seems that your anchor points to an existing ID'd tag.
your anchor:
<a href="#comment-648766">this</a>
that points to the page's generated html here:
<div class="comment" id="comment-648782">
ID's are stripped out on updates, but your clickable was able to target the generated link. i haven't yet seen where you've defined both, the anchor you click on AND the target. the one you just did in your last comment doesn't work, either, though i can see the # in the url.
and the markdown i used to define the clickable in my last comment is:
[clickable](#target)
Sorry, I got the details wrong on this.
You can target any element with an id attribute. You can target an a element with a name attribute. You cannot target other elements with name attributes.
Greasy Fork does not allow you use the id attribute as that could potentially interfere with the page's functionality. So your only option is to use a with name.
[Link](#workingexample)
<a name="workingexample">Target</a>

I want to create a clickable index that takes the user to other locations in the document. Doesn't seem to be supported in HTML or markdown. Can't post examples here because they get rendered and don't show up.