Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

代码展示支持折叠 #2175

Open
CaptainJon opened this issue Jul 19, 2024 · 1 comment
Open

代码展示支持折叠 #2175

CaptainJon opened this issue Jul 19, 2024 · 1 comment
Labels
enhancement New feature or request no plan This will not be worked on

Comments

@CaptainJon
Copy link

What problem does this feature solve?

部分内容的代码展示过于修长,不利于读者观看,是否可能添加代码的折叠功能,类似编辑器的折叠,可以更快让读者看到代码的整体结构

Possible Solution (optional)

No response

@CaptainJon CaptainJon added the enhancement New feature or request label Jul 19, 2024
@PeachScript
Copy link
Member

引入 editor 会增大不少尺寸,暂时不会考虑默认集成该能力

如果有需求可以考虑封装一个 dumi 插件,来替换默认的 SourceCode 组件引入合适的 editor,这样其他有类似需求的用户也能用上,dumi 文档里加个『插件市场』之类的页面

@PeachScript PeachScript added the no plan This will not be worked on label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request no plan This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants