Skip to content

Conversation

@Golenspade
Copy link

背景与动机

补齐 c 语言的默认图标映射(cpp 已有,c 缺失)。

改动要点

  • 新增 CIcon 组件,基于 Simple Icons C 语言设计
  • with-icons.tsx 中添加 'c' 语言映射
  • 更新图标索引文件导出 CIcon

验证

  • ``c 代码块现在会显示 C 语言图标
  • filename="foo.c" 也能触发图标显示
  • 不影响现有的 cppjstsbash 等图标

兼容性

  • 无破坏性变更
  • 用户仍可使用 withIcons(Pre, { c: ... }) 进行自定义

Fixes #4685

- Add CIcon component based on Simple Icons C language design
- Update with-icons.tsx to include 'c' language mapping
- Add CIcon export to icons/index.ts
- Fixes missing C language icon in code block headers

Resolves shuding#4685
@vercel
Copy link

vercel bot commented Oct 9, 2025

@Golenspade is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Oct 9, 2025

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

Project Deployment Preview Comments Updated (UTC)
nextra-v2 Ready Ready Preview Comment Oct 10, 2025 2:23am

@changeset-bot
Copy link

changeset-bot bot commented Oct 9, 2025

🦋 Changeset detected

Latest commit: ca5518c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
nextra Patch
nextra-theme-blog Patch
nextra-theme-docs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

There's no C language icon in the code block header.

1 participant