ant-design / ant-design/pro-editor
markdown 组件的暗色主题怎么设置[Question]
- Dominant language
- TypeScript
- Stars
- 247
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
### 🧐 问题描述 | Proposed Solution
如标题,使用了如下代码,设置
`import { Markdown } from '@ant-design/pro-editor';`
```
测试antd主题
h1. Ant Design
antd主题按钮
{`# This is an H1
## This is an H2
### This is an H3
#### This is an H4
##### This is an H5`}
```
antd的主题设置成了暗色背景,被 antd 组件包裹的 Button 和 Title 是变成了暗色的主题,但是 markdown 并没有变过来,markdown 如果想要也变成暗色,该如何设置?
### 📝 补充信息 | Additional Information
_No response_
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names the Markdown component and antd ConfigProvider but no repository files or tests. Start by checking the Markdown component's theme handling and existing examples or documentation for dark-theme configuration. Done means confirming a supported setup and documenting a reproducible way to make Markdown follow the dark theme.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- markdown, typescript
- Domain
- frontend
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100