Skip to content

Centralize Markdown rendering policy - #1532

Merged
lovasoa merged 2 commits into
mainfrom
codex/cleanup-markdown-policy
Oct 7, 2026
Merged

lovasoa merged 2 commits into
mainfrom
codex/cleanup-markdown-policy

Conversation

@lovasoa

@lovasoa lovasoa commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

Use one private GFM options builder for the Markdown rendering function and Handlebars helper. Both paths retain the configured HTML/protocol policy and image handling, and the helper applies its existing allow_unsafe override afterward.

Regression coverage extends the existing Markdown test module and reuses its argument helpers. The compact matrix covers all four configuration combinations, raw HTML, dangerous links, data images, GFM, unsafe overrides, and unknown presets. Existing HTML/preset validation and default-policy tests remain intact; there is no parallel argument helper.

Validation: cargo fmt --all, cargo clippy --all-targets --all-features -- -D warnings, and cargo test --lib (236 tests passed).

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 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-07T10:21:40.754216Z bf6789b New commits
ℹ️ 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.

@lovasoa
lovasoa enabled auto-merge October 7, 2026 09:49
@lovasoa
lovasoa added this pull request to the merge queue Oct 7, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 7, 2026
@lovasoa
lovasoa added this pull request to the merge queue Oct 7, 2026
Merged via the queue into main with commit e4f6080 Oct 7, 2026
52 checks passed
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