Skip to content

Conversation

jsoref
Copy link
Contributor

@jsoref jsoref commented Oct 5, 2025

This is a third 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)

jsoref added 2 commits October 4, 2025 21:31
```sh
perl -pi -e '
if (/\`\`\`/) {
  $s = ! $s;
  next;
};
next if $s;
next if /^#/;
s/([a-z)`]\.) +/$1\n/g;
'
```

Signed-off-by: Josh Soref <[email protected]>
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

Signed-off-by: Josh Soref <[email protected]>
@jsoref jsoref requested a review from a team as a code owner October 5, 2025 01:46
@wraithgar wraithgar changed the title docs: rewrap markdown workspaces config docs: rewrap markdown Oct 5, 2025
@wraithgar wraithgar merged commit 1fde042 into npm:latest Oct 5, 2025
17 checks passed
@github-actions github-actions bot mentioned this pull request Oct 5, 2025
@jsoref jsoref deleted the rewrap-markdown-workspaces-config-docs branch October 5, 2025 03:58
Sign up for free to 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