Description
Hey,
I've noticed that on some pages of the Rust By Example site, the syntax highlighting isn't applied to editable code blocks.
For example, on the while let page, the first code block has syntax highlighting, but the second one does not:
This issue also occurs on several other pages, including:
Interestingly, the corresponding Markdown source files on GitHub do show proper syntax highlighting:
- https://github.com/rust-lang/rust-by-example/blob/master/src/fn.md
- https://github.com/rust-lang/rust-by-example/blob/master/src/fn/methods.md
It looks like this might be related to how editable code blocks are rendered on the website. Let me know if you'd like help narrowing it down further.
Tested on the latest versions of Firefox and Chrome on Windows 10 Pro.
This issue was also discussed and confirmed by others in the Rust community Slack:
https://rust-lang.slack.com/archives/C1NCDGD47/p1747814609557589
Thanks!