Repository navigation
Description
Area
Product
What
star reads Markdown as values: a markdown provider, in pkg/op/provider/markdown beside yaml and json, that
parses a document into its parts, each with where it sits in the text, and edits one part in place:
- the frontmatter, as the value
yamldecodes it to; - each heading and the section under it;
- each table, as its header and its rows, each row its cells, a cell's links as their text and URL;
- each list, as its items.
An edit changes one part, a table's row or a section's text, and writes the document back with every other byte as it
was: each line's ending, \r\n or \n, the last line's or the lack of one, and every line the edit doesn't touch.
Rendering to HTML is not part of it.
Its epic is for triage to set.
The use it is wanted for first: an issue's table of documents
An issue ends with a table of its plan and design documents, ## Plan and design documents, two columns, Kind and
Document
(development-process.md § Plans).
It is a table of metadata values: each row a kind, such as Plan or Design, and the document it names, a link to a
committed file or, until there is one, a placeholder such as "Not yet opened". A kind may repeat: an issue with two
plans has two Plan rows.
NobleFactor/noblefactor-engprod#557 adds star github plan link <plan>, which sets an issue's Plan entry to the plan's
link on its repository's default branch, and --all, which does it for every plan. Ruled 2026-11-14, it reads the
issue's body line by line, the lines that start | Plan |, until this provider exists; its code carries a TODO naming
this issue. With the provider, the command would:
- Read the plan's frontmatter as a value, its
issuekey naming the issue. - Find the issue body's
## Plan and design documentssection and its table, and read the table's rows as entries,
each a kind and a document, a link with its repository, branch and path, or plain text. - Set the Plan entry: nothing when an entry already links the plan on the default branch; an entry that links it on
another branch, or holds no link, given the link; else an entry added; else, with no such table, the section and
the table made at the end of the body. - Write only that table back, and read the body back.
The provider makes that independent of how the lines are written: a Plan row in some other table is not mistaken for
the entry, and a table whose header is laid out differently is recognized by its header.
A second use already in the code
star github schedule add edits a Schedule issue's ## Amendments section, its entries each a list item, in
NobleFactor/noblefactor-engprod's GitHub extension, commands/steps.star, by lines as well.
Evidence of completion
- The provider's tests pass on every platform
starships for, among them a document whose lines end\r\nand one
with no last newline, each edited and written back with every other byte as it was. star github plan linkreads and writes the table through the provider, its TODO gone, and its cases in
NobleFactor/noblefactor-engprod'stests/Test-StarGitHubpass unchanged.
Plan and design documents
| Kind | Document |
|---|---|
| Plan | Not yet opened |
| Where it is wanted | NobleFactor/noblefactor-engprod#557's plan |
Activity
David-Noble-at-work commentedon Nov 16, 2026
Duplicate of #1100, the markdown provider, filed on 2026-10-20 under Epic #815, Providers. This issue's use, an issue's table of documents read and set as values for NobleFactor/noblefactor-engprod#557's
star github plan link, is carried there as a comment, and the command's TODO names #1100.