tc39 / tc39/ecmarkup

Headings are not hierarchical

Open
#502 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
245
Forks
80
Avg merge
10h 46m
Merged PRs (30d)
2

Description

When reading the spec, I notice that the table of contents is fine, but all headings are h1. This makes navigation harder for people who use them (blind people for example), as we can't skip to the next section without round trips to the TOC (I can only skip to the next heading, as they have the same level). Two possible solutions:

  1. Put the headings of the spec in a hierarchical order (section 1 is h1, 1.1 is h2, etc.); or
  2. Postprocess the code of epmarkup to change the heading levels and make them hierarchical, as it's already done in the TOC.

Of course, the end result will be the same.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how epmarkup generates spec headings and how the table of contents derives its hierarchy. Compare the two proposed approaches, then verify that section 1/1.1-style structure produces nested heading levels and preserves accessible navigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
accessibility, documentation
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.