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

[Feature Request] Add html classes to Table Of Contents Elements #2525

Closed
kyan001 opened this issue Oct 23, 2018 · 1 comment
Closed

[Feature Request] Add html classes to Table Of Contents Elements #2525

kyan001 opened this issue Oct 23, 2018 · 1 comment
Labels
feature request 🌟 Issue is a new feature request.

Comments

@kyan001
Copy link

kyan001 commented Oct 23, 2018

[Feature Request] Add html classes to Table Of Contents Elements

Could you add some classes to auto-generated Table of Contents?
Such as <ul class="toc">, <li class='h4'> so that I can control TOC styles by myself.
(I wanna make h3/h4 has a smaller font and make h5 disappear in TOC)

BTW, where I can find the corresponding css selector name of each markdown elements (when customizing css)?

@ZeroX-DG ZeroX-DG added the feature request 🌟 Issue is a new feature request. label Oct 23, 2018
@ZeroX-DG
Copy link
Member

ZeroX-DG commented Feb 1, 2019

You can search for your header using the dev tool. You can open the dev tool using view > toggle developer tool (ctrl + shift + i). After you find your header you can right click on it and select copy > copy selector.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request 🌟 Issue is a new feature request.
Projects
None yet
Development

No branches or pull requests

2 participants