daisy / daisy/ace

website TOC generation

Open
#163 2 comments 0 reactions 1 assignee Claimed by @rdeltour View on GitHub
Dominant language
JavaScript
Stars
98
Forks
29
PR merge metrics
No merged PRs in 30d

Description

Hugo/markdown automatically inserts a TOC into each page, if there are subheadings. However, I notice that depending on the nesting structure, the generated TOC looks different. Attached are 2 examples, one of which has a consistently ordered list, and the other of which is a mix of list items and ordered lists. The latter example can be reproduced consistently by inserting sub-sub-headings under any page subheading that's not the last one.

E.g.

## heading
## another heading
### a subtopic

will look fine

But

## heading
### subtopic
## another heading
### another subtopic

will not.

screen shot 2018-01-27 at 3 32 45 pm
screen shot 2018-01-27 at 3 33 37 pm

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.