egoist / egoist/docup

Hidden H2s still appear in Menu component

Open
#7 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
701
Forks
27
PR merge metrics
No merged PRs in 30d

Description

Hiding H2s via comments will prevent them from being shown in main content area, however they still appear in the menu section. This can reproduced by taking the boilerplate `index.html` (described in the "Quick Start" instructions), and creating a README.md with the following content.

```md
# Title

lorem ipsum ...

## Table of Contents

- [Installation](#installation)
- [Getting Started](#getting-started)

## Installation

`npm i some-package`

## Getting Started

blah blah blah
```

The generated website will show three sections in the menu: "Table of Contents", "Installation", and "Getting Started". My expectation is that it would only show the latter two.

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.