Skip to content

refactor: simplify Markdown table row rendering (#670) - #724

Merged
Jamie-BitFlight merged 1 commit into
mainfrom
refactor/670-markdown-table-renderer
Oct 10, 2026
Merged

Jamie-BitFlight merged 1 commit into
mainfrom
refactor/670-markdown-table-renderer

Conversation

@Jamie-BitFlight

Copy link
Copy Markdown
Contributor

Replace the intermediate delimiter matrix and nested index mutations with row-oriented rendering. Reuse existing escaping and padding helpers, remove the unnecessary padding assertion. Intended to preserve output bytes including trailing newlines, header emphasis, delimiters and ragged rows.

Draft pending byte-for-byte fixture comparison, all existing markdowner tests, README contract verification and CI. Related #670.

@coderabbitai

coderabbitai Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: bitflight-devops/github-action-readme-generator/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6ef88da5-c184-4e7d-8864-f0fd139f9872

📥 Commits

Reviewing files that changed from the base of the PR and between edb05b4 and 5416007.


📒 Files selected for processing (1)
  • src/markdowner/index.ts

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 92.03% 994 / 1080
🔵 Statements 92.21% 1019 / 1105
🔵 Functions 95.15% 157 / 165
🔵 Branches 85.51% 543 / 635
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/markdowner/index.ts 100% 75% 100% 100%
Generated in workflow #1072 for commit 5416007 by the Vitest Coverage Report Action

@Jamie-BitFlight
Jamie-BitFlight marked this pull request as ready for review October 10, 2026 21:13
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 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-10-10T21:16:17.161722Z 5416007 Draft marked ready
ℹ️ 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.

@Jamie-BitFlight Jamie-BitFlight left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Holistic review of PRs #717–#728

Reviewed 5416007c83e4e508eb6b070e15cc3e157dbaa6ea against main at edb05b4eeea35e03df75b066b8ddd1d708de9f1c.

Assessment: correct simplification for the generator's supported table inputs; ready for final verification. No blocking defect found.

I compared the actual main/head renderer functions over 606 deterministic cases: dense rectangular/ragged rows, header-only tables, an empty row where another supplies columns, whitespace, newlines/CRLF, backticks, pipes, backslash-pipe sequences, marker-like text and Unicode. Every supported nonzero-column case was byte-identical and input arrays were unchanged. Escaping order is preserved.

The two production callers, inputs and outputs, skip empty metadata and construct dense string rows with fixed headers. Empty outer arrays, zero-column tables and sparse/undefined cells do have different outcomes, but no supported caller or public export supplies them. Those observations do not establish a user-facing regression and do not justify new validation or restrictions. #727's restrictive metadata checks are not necessary for this renderer refactor.

Current-head Node 24/26, lint, build/generate-docs and both rebuilt third-party integration checks are green. This change is independent of the logger stack.

@Jamie-BitFlight
Jamie-BitFlight merged commit 2087211 into main Oct 10, 2026
11 checks passed
@Jamie-BitFlight
Jamie-BitFlight deleted the refactor/670-markdown-table-renderer branch October 10, 2026 23:13
@Jamie-BitFlight

Copy link
Copy Markdown
Contributor Author

🎉 This PR is included in version 2.0.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

@Jamie-BitFlight Jamie-BitFlight added the released This issue/pull request has been released. label Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released This issue/pull request has been released.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant