Skip to content

Enforce canonical Markdown formatting. - #77

Merged
jon merged 1 commit into
mainfrom
jon/markdown-stern
Sep 28, 2026
Merged

jon merged 1 commit into
mainfrom
jon/markdown-stern

Conversation

@jon

@jon jon commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Format tracked Markdown with pinned Prettier 3.9.9 and reject formatting drift in CI. Use proseWrap: "always", printWidth: 80, and LF line endings. Prettier also normalizes headings, lists, tables, and spacing. Embedded code formatting is disabled.

Why

A line-length check cannot catch a paragraph stranded across short lines, and MD013's default mode lets a final word cross column 80. Prettier gives paragraphs a reproducible layout; MD013's stern mode enforces the prose limit while retaining its exemptions for code blocks, tables, unbreakable tokens, and link-only lines. Long inline destinations become reference links where necessary for wrapping. The policy checker parses reference definitions so it still checks local paths and anchors when Prettier puts the destination on the next line.

Documentation

Apply the formatter to the tracked Markdown and document the local formatting commands in the contribution guide. The reflow preserves rendered content and link destinations, and existing code examples are unchanged. Pull-request descriptions keep their existing one-line-per-paragraph rule.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-28T00:44:06.452466Z d99ed01 Manual request
🔒 Security Review ✅ Completed 2026-09-28T00:25:41.287040Z ba66e0d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@jon

jon commented Sep 28, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ba66e0d9e2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread CONTRIBUTING.md
A line-length check cannot catch paragraphs stranded across short
lines, and MD013's default mode lets a final word cross the
configured limit. Require pinned Prettier formatting for tracked
Markdown in CI and enable MD013's stern mode to enforce wrappable
prose length.

Wrap prose at 80 columns and normalize Markdown structure and LF
line endings. Leave embedded code formatting disabled and preserve
MD013's code-block, table, unbreakable-token, and link-only
exemptions. Apply the format and use reference links where inline
destinations prevent wrapping. Document the local commands while
keeping PR paragraphs unwrapped.

Parse reference definitions so wrapped destinations retain the same
local-path and anchor checks as single-line definitions.
@jon
jon force-pushed the jon/markdown-stern branch from ba66e0d to d99ed01 Compare September 28, 2026 00:39
@jon

jon commented Sep 28, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: d99ed011c5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jon
jon merged commit 2131d83 into main Sep 28, 2026
9 checks passed
@jon
jon deleted the jon/markdown-stern branch September 28, 2026 00:45
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.

1 participant