Skip to content

docs: rewrap markdown workspaces libnpmdiff - #8642

Merged
wraithgar merged 1 commit into
npm:latestfrom
jsoref:rewrap-markdown-docs-workspaces-libnpmdiff
Oct 5, 2025
Merged

docs: rewrap markdown workspaces libnpmdiff#8642
wraithgar merged 1 commit into
npm:latestfrom
jsoref:rewrap-markdown-docs-workspaces-libnpmdiff

Conversation

@jsoref

Copy link
Copy Markdown
Contributor

This is a fifth pass at rewrapping things. The patterns I'm using aren't fully complete, but they're definitely an improvement over the current content.

It's a lot smarter than the first pass, but that required quite a bit more effort to define a fancy pattern.

References

Related to #8617 (comment)

```sh
perl -pi -e '
if (/\`\`\`/) {
$s = ! $s;
next;
};
next if $s;
next if /^#/;
s/([a-z)`]\.) +/$1\n/g;
'
```
Visual Studio Code search and replace.
Search: (^(?!title|section| *```|/[*/]|\s*[{}])[^`#\n;][^\n]*[^-.:?!>\n\s{]) *$\n *(?!npm install|cd |\d+\.)([^-<$\s\n`+|#*;])
Replace: $1 $2
Flags: Case-sensitive, Regular expression
Manual wrap fixes.
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
@jsoref
jsoref requested a review from a team as a code ownerOctober 5, 2025 02:06
@wraithgar
wraithgar merged commit 268e4f8 into npm:latestOct 5, 2025
16 checks passed
@github-actionsgithub-actionsBot mentioned this pull request Oct 5, 2025
@jsoref
jsoref deleted the rewrap-markdown-docs-workspaces-libnpmdiff branch October 5, 2025 03:59
@github-actionsgithub-actionsBot mentioned this pull request May 27, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@jsoref@wraithgar