Repository navigation
Conversation
A line that opens with an inline code span (````x````, as docs/troubleshooting.md:3098 does) opened a fence, and any later run of the same character closed one. On main that hides every heading and <a id> in troubleshooting.md from line 3098 to 3729, so scripts/check-doc-links.ts and the docs lane's pregate refuse six valid links to them and skip the links on those lines.
… prose Its fence pattern opened a fence on ````x```` at the start of a line, the same misreading the link check had. On docs/troubleshooting.md it masked lines 3098 to 4054 as code, took the bare fence at 4058 for an unclosed block and read nothing after it: 23 of 72 findings, and /ship's --base gate passed a sentence added in that half. A backtick fence now needs an info string without a backtick; indentation stays loose for fences nested in list items.
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
|
Thank you. This fixes #4391, and the change to |
|
Thank you for this. We're picking up the idea. A maintainer agent working through a batch of fixes (our tracking thread GSTA-802) will first reproduce the problem on current main. If it reproduces, the agent rebuilds the fix on main with you credited as co-author, because we don't merge outside branches directly, and we'll close this PR with a link when it lands. If it no longer reproduces, we'll close this and say what changed. |
|
Thanks @Davmunrey. We rebuilt this change on current main and merged it in #4677 (ef72e41), with you credited as co-author. Over every tracked Markdown file it cleared the 6 false broken links and reported no new ones. Closing this PR in favor of that one. |
Why (in your own words)
The docs lane's link check refuses valid links.
unfenced()inlib/doc-links.tsopened a fence on any line that starts with backticks, and closed one on any later line that starts with the same character.docs/troubleshooting.md:3098starts with the inline code span````gstack-ship-receipt````, so the checker read lines 3098 to 3729 as code. Every heading and<a id>there vanished, and a docs change linking to one of them failedscripts/check-doc-links.tsand the docs lane's pregate. Six links already on main hit this (for exampleunattended.md→troubleshooting.md#unattended-runs-and-artifacts), and the links on those lines were never checked.gstack-prose-linthad the same opening rule. On that file it masked lines 3098 to 4054 as code, took the bare fence at 4058 for an unclosed block and read nothing after it, so /ship's--base --gaterun passed prose added in the second half of the file.Both now follow CommonMark: a backtick fence's info string has no backtick. The link check also ends a block only on a bare run of the same character at least as long as the opening one; prose-lint already did, and keeps its loose indentation for fences nested in list items. #4193 carried a similar change inside a three-area PR and was closed because the link-checker case did not change a workflow; the refusal below is that workflow.
Live evidence
Scope
unfenced()inlib/doc-links.ts, the fence-opening pattern inlib/prose-lint.ts, one test in each oftest/docs-only.test.tsandtest/prose-lint.test.ts, and a changelog fragment.gstack-prose-linton main and on this branch (output above), andbrokenLinksover the whole repository before and after.Liveness proof (required for external contributors)
Checklist
GSTACK PRtyped live into a real surface) or PR author is @garrytan (owner exemption)