We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
hexo version
Highlight rust code correctly.
I've tested on the official demo site of highlightjs, it's correct:
For this snippet:
fn main() { let hello: &'static str = "hello"; { let world = String::from("world"); let world = &world; debug(hello, world); } }
Since the lifetime specifier for rust starts with an 「'」, hexo / highlightjs seems to treat all the characters after it to a single string:
Safe mode
Yes!
node -v && npm -v v23.5.0 10.9.2
npm ls --depth 0 [email protected] /Users/xxxx/tmp/hexo_test/test ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected]
package.json
{ "name": "hexo-site", "version": "0.0.0", "private": true, "scripts": { "build": "hexo generate", "clean": "hexo clean", "deploy": "hexo deploy", "server": "hexo server" }, "hexo": { "version": "7.3.0" }, "dependencies": { "hexo": "^7.3.0", "hexo-generator-archive": "^2.0.0", "hexo-generator-category": "^2.0.0", "hexo-generator-index": "^4.0.0", "hexo-generator-tag": "^2.0.0", "hexo-renderer-ejs": "^2.0.0", "hexo-renderer-marked": "^6.3.0", "hexo-renderer-stylus": "^3.0.1", "hexo-server": "^3.0.0", "hexo-theme-landscape": "^1.0.0" } }
_config.yml
default, unchanged
No response
The text was updated successfully, but these errors were encountered:
highlightjs/highlight.js#4190
Sorry, something went wrong.
Thanks,I'll closed the issue and track that one.
BTW, I wonder if any changes should be made in hexo conf after highlightjs fixed that issue?
No branches or pull requests
Check List
hexo version
to check)Expected behavior
Highlight rust code correctly.
I've tested on the official demo site of highlightjs, it's correct:
Actual behavior
For this snippet:
Since the lifetime specifier for rust starts with an 「'」, hexo / highlightjs seems to treat all the characters after it to a single string:
How to reproduce?
Is the problem still there under
Safe mode
?Yes!
Your Node.js & npm version
Your Hexo and Plugin version
Your
package.json
Your site's
_config.yml
(Optional)default, unchanged
Others
No response
The text was updated successfully, but these errors were encountered: