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

Code Block typography is messy #4088

Coolkkmeat opened this issue Jan 20, 2020 · 0 comments

Code Block typography is messy #4088

Coolkkmeat opened this issue Jan 20, 2020 · 0 comments


Copy link

@Coolkkmeat Coolkkmeat commented Jan 20, 2020

My English is not good, so I use Google Translate, thanks.

Check List

Please check followings before submitting a new issue.

  • I have already read Docs page & Troubleshooting page
  • I have already searched existing issues and they are not help to me
  • I examined error or warning messages and it's difficult to solve
  • Using the latest version of Hexo
    How to update...Sorry, i don't know.
  • Node.js is higher than 8.6.0

Expected behavior

Typesetting is normal, same as vscode

Actual behavior

Typographical error, each block is different, spaces and tabs are invalid
But vscode and other markdown tools can display normally. 4 spaces, 1 tab, 2 spaces, 3 spaces, all will not work

How to reproduce?

Use "Three anti single quotes" to include code blocks, such as java and xml

Environment & Settings

Node.js & npm version


Your site _config.yml (Optional)

Same as the official documentation, there should be no problem here

Your theme _config.yml (Optional)

butterfly Theme

I previously mentioned the issue to the author of the theme. 
But the author replied that theme is not responsible for rendering the code. And let me give feedback on hexo.

Hexo and Plugin version(npm ls --depth 0)

E:\OneDrive\Local\Blog>npm ls --depth 0
hexo-site@0.0.0 E:\OneDrive\Local\Blog
+-- hexo@4.1.1
+-- hexo-browsersync@0.3.0
+-- hexo-deployer-git@2.1.0
+-- hexo-generator-archive@1.0.0
+-- hexo-generator-category@1.0.0
+-- hexo-generator-index-pin-top@0.2.2
+-- hexo-generator-tag@1.0.0
+-- hexo-renderer-ejs@1.0.0
+-- hexo-renderer-marked@2.0.0
+-- hexo-renderer-pug@1.0.0
+-- hexo-renderer-stylus@1.1.0
+-- hexo-server@1.0.0
`-- hexo-wordcount@6.0.1

Your package.json 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": "4.1.1"
  "dependencies": {
    "hexo": "^4.0.0",
    "hexo-browsersync": "^0.3.0",
    "hexo-deployer-git": "^2.1.0",
    "hexo-generator-archive": "^1.0.0",
    "hexo-generator-category": "^1.0.0",
    "hexo-generator-index-pin-top": "^0.2.2",
    "hexo-generator-tag": "^1.0.0",
    "hexo-renderer-ejs": "^1.0.0",
    "hexo-renderer-marked": "^2.0.0",
    "hexo-renderer-pug": "^1.0.0",
    "hexo-renderer-stylus": "^1.1.0",
    "hexo-server": "^1.0.0",
    "hexo-wordcount": "^6.0.1"


Thanks, i really like hexo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.