Add a shorthand for making alternative named anchors #4023
Labels
closed: duplicate
This issue or pull request already exists in another issue or pull request
feature
This is not a bug or issue with Docusausus, per se. It is a feature request for the future.
🚀 Feature
Some nice shorthand for easily defining alternate anchor names for otherwise long headings
Have you read the Contributing Guidelines on issues?
Yup
Motivation
I like to use quite verbose headings, and I'd like to make shorter anchors so I can link to them easier. Each word in the heading makes the URI for it longer, and sometimes it's nice to use "codewords" for them.
Pitch
The other alternative is adding a line like this just above the heading
It would be nice to have some sort of mechanism to add these dynamically into the generated DOM instead of having to paste this quite long line in there.
For example adding it to the heading line such as this and ensre the same CSS is applied to it so that there isn't extra space added above or below the heading, and so that the heading does not get hidden behind the site header when the anchor link is clicked.
## Retrieving logs from the toolset <a name="logs"></a>
An alternative could be adding some
<anchor>
object which would get styled the same way the headings do, and would not conflict with the rendering. I would not know how to make a module like that in a way which it wold not interfere with the spacing above/below the headings, and end up inside the<h2>
tag for exampleThe text was updated successfully, but these errors were encountered: