sunface / rust-by-practice

Learning Rust By Practice, narrowing the gap between beginner and skilled-dev through challenging examples, exercises and projects.
https://practice.rs
Creative Commons Attribution 4.0 International
12.01k stars 964 forks source link

代码块样式问题 #495

Open catcoal opened 7 months ago

catcoal commented 7 months ago

代码块内容超出,样式bug

image
catcoal commented 7 months ago

稍后我将修复此问题

sunface commented 7 months ago

macos + chrome 没有发现问题,你那边的环境是啥~

catcoal commented 7 months ago

webkit和chromium都有这个问题,好像这个问题出现在中文文档里,英文文档貌似没有 image image

catcoal commented 7 months ago

我提交的修改经测试检查,可以解决这个问题

h3n4l commented 7 months ago

BTW, can we remove the first empty line in each code block? It's meaningless. CleanShot 2024-02-04 at 02 19 46@2x

ruihusky commented 5 months ago

macos + chrome 没有发现问题,你那边的环境是啥~

Win11 + Chrome v123,仅中文页面存在问题。

中英文的样式表存在一些差异:

image

导致上述问题的应该是84~87行的代码。

在Chrome中调试,去掉这一块代码就恢复正常了,也没有出现其他异常,这块样式的作用是什么呢?

image