Skip to content

Add markdown renderer extensions: directives, image params, preview#82

Merged
PatrikBak merged 1 commit into
mainfrom
renderer-extensions
May 10, 2026
Merged

Add markdown renderer extensions: directives, image params, preview#82
PatrikBak merged 1 commit into
mainfrom
renderer-extensions

Conversation

@PatrikBak
Copy link
Copy Markdown
Owner

Summary

  • Renderer + validator now support ?width/?height/?inline/?scale on image URLs (parsed by a shared image-url-params utility), :::list{style=...} container directive for custom marker styles, and :quote[text] inline directive for locale-aware quotation marks
  • Adds /[locale]/dev/renderer-preview — a dev-only visual catalog page exercising every renderer feature for visual regression spotting
  • Cleans up all remark plugins to use unified's Transformer<Node> type instead of local structural stubs, adds GitHub-style markdown table CSS in .article--math, and ships validator fixtures covering the new directive shapes

🤖 Generated with Claude Code

- Image URL params (?width/?height/?inline/?scale) parsed by a shared
  utility, used by both the renderer (best-effort) and the markdown
  validator (strict)
- :::list{style=...} container directive for custom list-marker styles
  and :quote[text] inline directive for locale-aware quotation marks
- /[locale]/dev/renderer-preview dev-only visual catalog page exercising
  every renderer feature
- All remark plugins now use unified's Transformer<Node> typing instead
  of local structural stubs
- GitHub-style table CSS in .article--math; validator fixtures covering
  the new directive shapes

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
math-comps Ready Ready Preview, Comment May 10, 2026 2:03pm

@PatrikBak PatrikBak merged commit b9fd72b into main May 10, 2026
4 checks passed
@PatrikBak PatrikBak deleted the renderer-extensions branch May 10, 2026 14:04
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