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

feat: 默认代码块展开? #1

Open
alleluya-young opened this issue Dec 5, 2023 · 6 comments
Open

feat: 默认代码块展开? #1

alleluya-young opened this issue Dec 5, 2023 · 6 comments

Comments

@alleluya-young
Copy link
Contributor

image
如图 貌似是没有做这种默认展开的操作? 麻烦大佬看看能否满足需求... 感谢~

@alleluya-young
Copy link
Contributor Author

@xcanwin
Copy link
Owner

xcanwin commented Dec 6, 2023

新增了展开代码功能,代码块高度在浏览器高度的80%以内则自动展开

@alleluya-young
Copy link
Contributor Author

新增了展开代码功能,代码块高度在浏览器高度的80%以内则自动展开

试了下 提issue的这个链接是可以了 但是只有prettyprint的querySelectorAll才有效 比如这个里面的代码块没有prettyprint, prettyCode函数就没用了...
image
这个是应该把各种代码块关联的class都列出来还是换个别的方式去获取代码块 然后执行展开呢?

@alleluya-young
Copy link
Contributor Author

链接: https://reurl.cc/r6mpNk

@alleluya-young
Copy link
Contributor Author

提了个pr 看看可以合并么😊

@xcanwin
Copy link
Owner

xcanwin commented Dec 6, 2023

不错

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

No branches or pull requests

2 participants