remarkjs / remark-toc

plugin to generate a table of contents (TOC)

Home Page:https://remark.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Force table of contents on every markdown file

FColor04 opened this issue · comments

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

commented

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?

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

Hi! This was closed. Team: If this was fixed, please add phase/solved. Otherwise, please add one of the no/* labels.