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

Force table of contents on every markdown file #39

Closed
4 tasks done
FColor04 opened this issue May 26, 2023 · 3 comments
Closed
4 tasks done

Force table of contents on every markdown file #39

FColor04 opened this issue May 26, 2023 · 3 comments
Labels
🤷 no/invalid This cannot be acted upon 👎 phase/no Post cannot or will not be acted on

Comments

@FColor04
Copy link

Initial checklist

Problem

I want to add table of contents to each file, without the need of level 1 heading and specifying table of contents explicitly (but that is less of an issue than having to have h1 before toc)

Solution

Plugin generates table of contents without H1

Alternatives

Plugin has option to force toc on every markdown file

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels May 26, 2023
@wooorm
Copy link
Member

wooorm commented May 26, 2023

Hey! This plugin already applied your solution: no h1 is needed.

  • There is no level 1 heading needed
  • There is a certain heading needed
  • Where would this ToC that you want be placed?

@FColor04
Copy link
Author

My bad, Im sorry for the issue, my styling was just wrong; With H1
image
Without H1
image
My styling was dependent on section tag above #table-of-contents

@github-actions

This comment has been minimized.

@wooorm wooorm added the 🤷 no/invalid This cannot be acted upon label May 27, 2023
@github-actions github-actions bot added 👎 phase/no Post cannot or will not be acted on and removed 🤞 phase/open Post is being triaged manually labels May 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤷 no/invalid This cannot be acted upon 👎 phase/no Post cannot or will not be acted on
Development

No branches or pull requests

2 participants