MartinPacker / MartinPacker/mdpre

Make Variables Optionally Arrays

Open
#54 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
HTML
Stars
13
Forks
3
PR merge metrics
No merged PRs in 30d

Description

It would be nice to code &system[2] and have it use the third (or maybe second) word in the variable 'system'.

Whether to 1- or 0-index has still to be decided.

Motivation: I'm looping through a bunch of systems and would like to increment a counter (already feasible) to iterate through the list.

Contributor guide

No contributing guide indexed for this repository

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

No file or test is named in issue #54. Start by locating the variable-expansion entry point and existing counter handling; first resolve whether indexing is zero- or one-based, then define completion as indexed access selecting the requested word from a variable and add coverage for the chosen behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.