feat(textlint): gate hard-wrapped Markdown prose - #658
Merged
Conversation
This was referenced Aug 20, 2026
shunk031
force-pushed
the
feat/textlint-markdown-gate
branch
from
August 20, 2026 03:07
5b0c195 to
e9c1173
Compare
Use a shared chezmoi-managed rule configuration for the local Node hook and the deterministic document review. Keep textlint failures visible when the engine is unavailable, and preserve the reference fixtures for autofix and rule caveats. Co-authored-by: Codex <noreply@openai.com>
shunk031
force-pushed
the
feat/textlint-markdown-gate
branch
from
August 20, 2026 03:08
e9c1173 to
0d6ee27
Compare
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.
Summary
This adds a shared chezmoi-managed textlint configuration and a repository-local Node pre-commit hook that autofixes hard-wrapped Markdown prose. The deterministic document review invokes the same rules with JSON output, reports quoted findings, and fails when textlint is unavailable or returns a fatal error. The seven salvaged fixtures preserve the exact unwrap result, blockquote skip behavior, and document-global spacing behavior. Please review and approve the shared configuration, hook behavior, and fixture-preserving changes.
Validation
uv run --python 3.14.6 --no-project python -m unittest discover -s tests/python -p 'test_*.py'(94 tests passed)OAI_API_KEY=true prek run textlint-markdown --files .tmp-textlint-validation.md(passed and fixed the disposable hard wrap)unwrap_expected.txt, preservedblockquote_expected.txt, and matchedspacing_side_effect_expected.txtbyte-for-byte.Research basis
repo: local,language: node, and pinnedadditional_dependencieswithout a custom mirror.--fix,--format json,--config, and fatal exit status handling.