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

Option to control the TOC text for specific anchors #26

Open
esjewett opened this issue Jan 25, 2015 · 2 comments
Open

Option to control the TOC text for specific anchors #26

esjewett opened this issue Jan 25, 2015 · 2 comments

Comments

@esjewett
Copy link

Sometimes I don't want to display the full heading of a section in the table of contents. Is there or could there be an option to override the heading display?

Example: currently in the Reductio README (https://github.com/esjewett/reductio), one heading is "reductio.avg(boolean|value)". I would like this to be the heading, but in the TOC I'd like to display only "avg".

@gajus
Copy link
Owner

gajus commented Jan 25, 2015

This should be first raised with https://github.com/gajus/contents. Though, yes, it can be done with a custom callback. I will keep track of this. Don't have a lot of time for open source before the end of the month.

@esjewett
Copy link
Author

Thanks - I figured out how to embed HTML formatting, so that alleviates the
problem a bit. No hurry!

On Sunday, January 25, 2015, Gajus Kuizinas [email protected]
wrote:

This should be first raised with https://github.com/gajus/contents.
Though, yes, it can be done with a custom callback. I will keep track of
this. Don't have a lot of time for open source before the end of the month.


Reply to this email directly or view it on GitHub
#26 (comment).

@gajus gajus changed the title Question: option to control the TOC text for specific anchors? Option to control the TOC text for specific anchors Aug 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants