tc39 / tc39/ecmarkup

support using replaces-step with more than one step

Open
#418 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

Currently, replaces-step is used only when replacing a single step with a single replacement step (it is what gets the step numbering of the replacement correct). We can support replacing with more than one step by treating the replacement steps as if they are nested a level deeper. So, for example, when replacing step 4 with 2 steps, we would number them 4.a and 4.b.

Current workaround is to use a single step that says "perform the following steps" with some sub-steps. That's not great.

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 the existing replaces-step handling and the code that assigns step numbers. Check how current single-step replacements are tested, then support multiple replacement steps with nested numbering such as 4.a and 4.b and verify that the existing single-step behavior remains correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
documentation, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.