-
-
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
使用prism渲染出现的Bugs #4460
Comments
Lines 26 to 29 in b7d15b9
Line 267 in b7d15b9
I am not sure but I wonder if |
The issue might be related with PrismJS/prism#2516. |
|
renders fine for me in landscape theme, even without #4472 I'm using your highlight:
enable: false
line_number: false
auto_detect: false
tab_replace: ' '
hljs: true
wrap: false
prismjs:
enable: true
preprocess: true
line_number: true
tab_replace: '' Can you attach your |
I don't why, Do you test this two case, it work ?
I just only change the theme in _config
package.json
|
|
May not be related, but try upgrading hexo-generator-index and hexo-server to "^2.0.0". |
I managed to temporarily reproduce the issue, I set 'next' theme: # _config.yml
theme: next even though I've removed it, then the rendered page showed landscape theme and the rendering issue. Can you try installing the theme the previous way? 1 I'm guessing cache conflict. |
still rendering errors |
i delete the folder and run 'hexo init' in new folder my blog folder still have this issues, |
you can backup "_config.yml" and "source/" folder, then delete blog and hexo-init, finally restore those files. |
Check List
Please check followings before submitting a new issue.
hexo version
to check)Expected behavior
Actual behavior
How to reproduce?
Is the problem still there under "Safe mode"?
Environment & Settings
Node.js & npm version(
node -v && npm -v
)Your site
_config.yml
(Optional)Your theme
_config.yml
(Optional)Hexo and Plugin version(
npm ls --depth 0
)Your package.json
package.json
Others
使用prism渲染代码,发现页面多了一段文字 :hexoPostRenderEscape–>
试过用highlightjs渲染,并没有这段文字
我用的是hexo-theme-unit-test的这篇文章code-highlight测试

还有这段文字上面的html代码没有line number生成。。
我在适配prismjs有点疑问,希望能解答
按照hexo官网的教程,我引入了line-number.js(https://cdn.jsdelivr.net/npm/prismjs/plugins/line-numbers/prism-line-numbers.min.js),但是发现有些代码框并没有生成line-number,


以上面那篇文字为例
好几个代码块是没有插入line-number html
在pug中进行判断

config.prismjs && config.prismjs.enable
当配置文件中没有prisim这段配置(考虑到升级5.0的人没有去补全这段配置),运行会出现报错这个要怎么解决?
The text was updated successfully, but these errors were encountered: