Repository navigation
Format Markdown at a 180 column width - #162
Merged
Merged
Conversation
Users asked for the 180 line-length concept to cover Markdown too, CHANGELOG in particular, whose entries wrapped at 80. Add Prettier (pinned 3.9.9, matching unity-helpers) with printWidth 180 and proseWrap always, reflow 19 tracked Markdown files, and gate the check in the llm-lint workflow on both OSes with a Markdown trigger path. The generated skills index and SKILL.md frontmatter contracts are excluded through .prettierignore: the harness owns their format and requires single-line frontmatter. Escaping the pipes in code spans inside one forbidden-patterns table row fixes a pre-existing rendering defect the formatter exposed; a per-table pipe-count sweep found no other instance. Validation: format check, llm lints, file lengths, line endings, strict mkdocs build, npm pack, and 23/23 harness self-tests pass. Markdown rendering is content-identical (verified by whitespace- normalized comparison of all files against HEAD); word count moves by one re-wrapped blockquote marker. No C# changed, so Unity suites carry over from 73b8beb (357/357, 15/15).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DISCLOSURE: LLM-GENERATED TEXT
Why: Markdown still wrapped at 80 columns while C# moved to 180, so the CHANGELOG and docs read as narrow fragments.
What:
printWidth: 180andproseWrap: always.llm-lint.ymlon both OSes and trigger on**/*.md.forbidden-patterns.md.Follows #161
Note
Low Risk
Documentation and CI tooling only; no Unity runtime or editor code changes.
Overview
Adds Prettier 3.9.9 for tracked Markdown with 180-column prose wrap (aligned with CSharpier), via
.prettierrc.json,.prettierignore(skips.llm/skills/and other generated/local trees), andnpm run format:md/format:md:check.CI and docs:
llm-lint.ymlrunsnpm installthenformat:md:checkon Ubuntu and Windows, and path filters now include**/*.mdand the Prettier config files. Agent guidance in.llm/context.mdand the ship-changes skill treats Markdown formatting as a gate alongside CSharpier..gitignoreaddsnode_modules/.Content pass: Nineteen Markdown files are reflowed (README, CHANGELOG, devcontainer and MCP docs, etc.);
forbidden-patterns.mdgets wider tables with escaped pipe characters in cells.package.jsondrops the emptydependenciesobject and pins Prettier underdevDependencies.Reviewed by Cursor Bugbot for commit b04792a. Bugbot is set up for automated code reviews on this repo. Configure here.