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

Closed
4 of 5 tasks
Coolkkmeat opened this issue Jan 20, 2020 · 2 comments
Closed
4 of 5 tasks

Code Block typography is messy #4088

Coolkkmeat opened this issue Jan 20, 2020 · 2 comments
Labels

Comments

@Coolkkmeat
Copy link

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
    hexo-cli:3.1.0
    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
1
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

Node:v12.13.1
NPM:6.12.1

Your site _config.yml (Optional)

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

Your theme _config.yml (Optional)

butterfly Theme
Github:https://github.com/jerryc127/hexo-theme-butterfly

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.
ISSUE:https://github.com/jerryc127/hexo-theme-butterfly/issues/104

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"
  }
}

Others

Thanks, i really like hexo.

@stale
Copy link

stale bot commented Mar 20, 2020

This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Mar 20, 2020
@stale stale bot closed this as completed Mar 27, 2020
@stevenjoezhang
Copy link
Member

This bug should be fixed in hexojs/hexo-util#260

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

No branches or pull requests

2 participants