Skip to content
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

升级适配Hexo 7.0 #908

Open
appotry opened this issue Jan 21, 2024 · 1 comment
Open

升级适配Hexo 7.0 #908

appotry opened this issue Jan 21, 2024 · 1 comment

Comments

@appotry
Copy link
Contributor

appotry commented Jan 21, 2024

改动很少 ,两处修改 https://github.com/hexojs/hexo/releases/tag/v7.0.0

Hexo 7 不再使用gist, youtube, jsfiddle, and vimeo 这几个tag ,如果要使用,需要单独安装插件

Some of the built-in tags have been dropped (gist, youtube, jsfiddle, and vimeo). If you use those tags in your existing blog posts, you can install hexo-tag-embed to continue using them with Hexo v7.0.0.

$ npm i hexo-tag-embed

代码高亮配置方式需要修改

Syntax highlighting is refactored and controlled by the following settings. See Syntax Highlighting for more details.

syntax_highlighter: highlight.js # highlight.js | prismjs | <empty>

已经用上了 hexo 7 版本,升级后暂时没发现什么bug

@appotry
Copy link
Contributor Author

appotry commented Jan 21, 2024

发现 7.1 存在bug tag 换行解析错误
hexo 7.0正常

npm i hexo@7.0.0 --save

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant