fix: prevent inline code from wrapping in table cells (#1968)

## Problem Inline code elements (e.g. `--provenance`, `--dry-run`) inside table cells can break across lines, making flag names hard to read. ## Fix Adds `white-space: nowrap` to `code` elements inside `td` and `th` in the `Table` styled component. --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Tea Reggi committed May 26, 2026 at 12:35 UTC cf1a947bda10f26acd3f15244b25c9b63ce3c7f9
3 files changed +23 -17
cli/lib/transform.js
+4 -3
@@ -128,10 +128,11 @@ const transform = (data, {release, path, frontmatter, format = s => s}) => {
128 // then do any transformer specific replacements
129 body = format(body)
130
131 - // prettier again now that we've altered the contents
132 - body = prettierFormat(body)
131 + // then do any transformer specific replacements
132 + body = format(body)
133
134 - return `---\n${yaml.stringify(attributes).trim()}\n---\n\n${body}`
134 + // prettier on the final assembled output so the committed file passes prettier --check
135 + return prettierFormat(`---\n${yaml.stringify(attributes).trim()}\n---\n\n${body}`)
136 }
137
138 // copied from minipass-collect. collects all chunks into a single
content/cli/v11/commands/npm-stage.mdx
+14 -14
@@ -77,14 +77,14 @@ Before using `npm stage` commands, ensure the following requirements are met:
77
78 ### 2FA Requirements by Subcommand
79
80 -| Command | Requires 2FA | Notes |
81 -| --- | --- | --- |
82 -| `npm stage publish` | No | Designed for automated workflows; defers 2FA to approval |
83 -| `npm stage list` | No | View staged packages |
84 -| `npm stage view` | No | View staged package details |
85 -| `npm stage approve` | Yes | Prompts for 2FA to publish the staged package |
86 -| `npm stage reject` | Yes | Prompts for 2FA to permanently remove the staged package |
87 -| `npm stage download` | No | Downloads the tarball for local inspection |
80 +| Command | Requires 2FA | Notes |
81 +| -------------------- | ------------ | -------------------------------------------------------- |
82 +| `npm stage publish` | No | Designed for automated workflows; defers 2FA to approval |
83 +| `npm stage list` | No | View staged packages |
84 +| `npm stage view` | No | View staged package details |
85 +| `npm stage approve` | Yes | Prompts for 2FA to publish the staged package |
86 +| `npm stage reject` | Yes | Prompts for 2FA to permanently remove the staged package |
87 +| `npm stage download` | No | Downloads the tarball for local inspection |
88
89 ### Tag Behavior
90
@@ -96,12 +96,12 @@ The tag is an immutable property of the staged package. Once a package is staged
96
97 The key difference with staged publishing is that `npm stage publish` never requires a 2FA prompt, regardless of token type. This is what makes it suitable for automated workflows. The goal of `npm stage publish` is deferring proof-of-presence to a later point in time.
98
99 -| Token Type | `npm stage publish` | `npm publish` |
100 -| --- | --- | --- |
101 -| GAT with bypass | Can stage | Can publish (if allowed by package publishing access) |
102 -| GAT without bypass | Can stage | 2FA prompt (if allowed by package publishing access) |
103 -| Session token | Can stage | 2FA prompt |
104 -| Trust token (OIDC) | Can stage (if allowed) | Can publish (if allowed) |
99 +| Token Type | `npm stage publish` | `npm publish` |
100 +| ------------------ | ---------------------- | ----------------------------------------------------- |
101 +| GAT with bypass | Can stage | Can publish (if allowed by package publishing access) |
102 +| GAT without bypass | Can stage | 2FA prompt (if allowed by package publishing access) |
103 +| Session token | Can stage | 2FA prompt |
104 +| Trust token (OIDC) | Can stage (if allowed) | Can publish (if allowed) |
105
106 ### Trust Relationship Permissions
107
src/mdx/components.js
+5
@@ -215,6 +215,11 @@ export const Table = styled.table`
215 border-top-width: 1px;
216 }
217
218 + td code,
219 + th code {
220 + white-space: nowrap;
221 + }
222 +
223 td a {
224 color: var(--fgColor-default, #1f2328);
225 text-decoration: underline;