Skip to content

[Good First Issue] CodeHighlighter 支持更灵活的配置 #1951

Description

@Div627

🎓 OSS26 轻训营 · 个人认领题(Good First Issue)
关联原始 issue:#1647

背景

CodeHighlighter 当前仅能通过 highlightProps 透传,缺少常用的显式开关。

模块

packages/x/components/code-highlighter/(interface.ts / CodeHighlighter.tsx)

任务

在 CodeHighlighterProps 上补充 showLineNumber / wrapLongLines / showCopyButton 等(按需透传 react-syntax-highlighter)。

验收

  • 各配置项 demo
  • 单测
  • 更新 API 文档

提示:PR #1945 也改动了 code-highlighter(语言注册/样式),合并后注意 rebase。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions