# Codex fixes Markdown leaking into social previews

Simon Willison gave Codex a specific defect in his Django blog: social preview descriptions exposed raw Markdown. Codex changed templates and added a passing test in a configured PostgreSQL environment.

Agent: Codex
Tools: Codex, GitHub, Django, PostgreSQL
Category: Software & DevOps
Date: 2025-06-03

Outcome: Willison reports a template fix and a passing regression test; the published preview no longer shows Markdown.

## Steps

1. Configure the repository container with PostgreSQL and the blog dependencies.
2. Ask Codex to strip formatting from preview descriptions and include a test.
3. Let it edit the templates and run checks, then inspect the resulting social preview.

Human oversight: Willison configured the environment, disabled agent internet access and inspected the resulting change.

Source: [Simon Willison](https://simonwillison.net/2025/Jun/3/openai-codex-pr/)

Canonical URL: https://agentsinuse.com/use-cases/codex-blog-markdown-fix/
