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

如何在markdown代码块中显示行号 #1639

Closed
beautiful-boyyy opened this issue May 5, 2023 · 1 comment
Closed

如何在markdown代码块中显示行号 #1639

beautiful-boyyy opened this issue May 5, 2023 · 1 comment
Labels
question Further information is requested

Comments

@beautiful-boyyy
Copy link

如何在markdown代码块中显示行号

@beautiful-boyyy beautiful-boyyy added the question Further information is requested label May 5, 2023
@PeachScript
Copy link
Member

默认主题不支持,可以自己覆写 SourceCode slot 来定制行号的渲染

@PeachScript PeachScript closed this as not planned Won't fix, can't repro, duplicate, stale May 6, 2023
KuangPF added a commit to KuangPF/dumi that referenced this issue May 11, 2023
PeachScript added a commit that referenced this issue May 19, 2023
* feat: add line mum for source code content(#1639)

* feat: line numbers support highlighting

* style: set highlighted souce code block width `100%`

* style: highlight the entire row

* Update docs/theme/default.md

---------

Co-authored-by: Peach <scdzwyxst@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants