-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Code Highlight error in 7.0.0-rc2 #5283
Comments
7.0.0 use
to change highlighter |
Thanks, I known. |
@D-Sketon I have run into similar problem when upgrading to Hexo 7.0.0. The configuration that I used before to disable highlight.js no longer works: highlight:
enable: false To disable highlight.js in 7.0.0, it needs extra configuration. # The default value is 'highlight.js' and here we set it to empty
syntax_highlighter: I think this should be considered as a breaking change, and it would be reasonable to mention it in the migration guide. cc @stevenjoezhang for #5095 |
@prinsss Does some one would you please fix a release news? Thank you :) |
Check List
Please check followings before submitting a new issue.
hexo version
to check)Expected behavior
To call primejs to display the code.
Actual behavior
It called highlight.js unexpectedly.
How to reproduce?
Create a sample blog using
hexo 7.0.0-rc2
And then disable the plugin
highlight.js
and enableprimejs
as you can see, I disabled the
line_number
of theprismjs
, but just runhexo clean && hexo s
and to see the resultIt displays the code with
line_number
usinghighlight.js
You can use this sample to test:
Is the problem still there under "Safe mode"?
Environment & Settings
Node.js & npm version(
node -v && npm -v
)Your site
_config.yml
(Optional)Hexo and Plugin version(
npm ls --depth 0
)Your package.json
package.json
Others
The text was updated successfully, but these errors were encountered: