Skip to content

feat(blog): add code block component [INTORG-767]#328

Open
JonathanMatthey wants to merge 6 commits into
stagingfrom
jm/intorg-767-code-block
Open

feat(blog): add code block component [INTORG-767]#328
JonathanMatthey wants to merge 6 commits into
stagingfrom
jm/intorg-767-code-block

Conversation

@JonathanMatthey

@JonathanMatthey JonathanMatthey commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds a code block component for blog posts, syntax highlighting via Shiki, copy button, optional title, 14 supported languages. Covers the Strapi component schema, MDX serializer, and Astro render component.

Related Issue

Fixes INTORG-767

Manual Test

  1. Add a Code Block to a blog post in Strapi and run MDX sync
  2. Check syntax highlighting and the copy button work in the browser

Checks

  • pnpm run format
  • pnpm run lint

PR Checklist

  • PR title follows Conventional Commits (e.g. feat: ..., fix: ...)
  • Linked issue included
  • Scope is focused (target ~10-20 files when possible)
  • Screenshots for UI changes (if applicable)

@JonathanMatthey JonathanMatthey self-assigned this Jun 4, 2026
@netlify

netlify Bot commented Jun 4, 2026

Copy link
Copy Markdown

Deploy Preview for interledger-org-v5 failed. Why did it fail? →

Name Link
🔨 Latest commit 404b291
🔍 Latest deploy log https://app.netlify.com/projects/interledger-org-v5/deploys/6a2a98b30af33a0008748347

@Infi-Knight Infi-Knight left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks like there is no import handler for CodeBlock? i.e the export path works but the parser will hard-fail without a registered handler

@JonathanMatthey

Copy link
Copy Markdown
Collaborator Author

looks like there is no import handler for CodeBlock? i.e the export path works but the parser will hard-fail without a registered handler

very true - hadn't run the import

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.

2 participants