requarks / wiki-v1

Legacy version (1.x) of Wiki.js
https://wiki.js.org
GNU Affero General Public License v3.0
101 stars 75 forks source link

Page Contents missing #150

Open davedub opened 5 years ago

davedub commented 5 years ago

Actual behavior

Inserting headers in a markdown file (using #, or ##, or ###, etc), I thought I would see them listed in "Page Contents" section on the left side of the page.

Expected behavior

I don't see any Page Contents at all, on any of my pages.

Steps to reproduce the behavior

Not using [[ ]] anchors, but basically a formatting question. None of these pages start with an h1 (#) element, mainly because I don't think I need it with title and subtitle information, so usually they start with a h2 (##). But I don't see any structure to the page (in "Page Contents") on the left ... if not starting with a h1 header, is that why? I don't mean to clutter up the issues list, and would be happy to put this in a community help forum, but I can't seem to find one, and markdown formatting requirements are not yet covered in the user wiki ... thanks!

page_contents

NGPixel commented 5 years ago

You need to use h1 to get the TOC generated. This is changed in v2 where you can start directly at h2.