-
Notifications
You must be signed in to change notification settings - Fork 332
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
Customize TOC style and template #403
Comments
@yzhang-gh that is how I do it ATM but let a plugin do this job automatically would be awesome! Why does it make the detection harder? I would take a look and see how far I come. It is really something that would same me some time :) |
Thanks. If you have any idea just run it by me. |
@yzhang-gh pushed my first attempt. Just an idea but what about using prettier in the repo to keep everything clean? I use |
Actually, I am using the vscode built-in formatter. As I notice, the code style mainly changed in two aspects:
Could you please get rid of the style changes in this PR and make a separate one for it? |
Yep sure @yzhang-gh. I will add an |
Okay @yzhang-gh I made the changes. Just have a look in |
Well, I actually think this is the job of presentation, rather than editor. You can render a list in any shape with CSS. |
Is there an option to simply remove bullets from the TOC? Thank you for your work. |
The TOC is just an HTML list, and its style can be changed with CSS https://developer.mozilla.org/en-US/docs/Web/CSS/list-style e.g. adding <style>
ul { list-style: none; }
</style> in the Markdown file will remove bullets of all the unordered lists. To apply it only on the TOC, you may apply some CSS selectors depending on your document structure. |
Feature request
In my README I prefer to use the TOC-style where the links are listed below each other (like it is now) but in the CHANGELOG I prefer it inline next to each other divided with a middot (·).
Would be nice to have an option here to insert different styles of TOC in a file or have an option in
settings.json
to create our own templates. 😁Style1:
Possible Style2:
How templating could work:
The text was updated successfully, but these errors were encountered: