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

When js_concator is enabled, the HTML in the code block is displayed incorrectly #93

Open
liuyib opened this issue Jan 15, 2020 · 1 comment

Comments

@liuyib
Copy link

liuyib commented Jan 15, 2020

my code in markdown:

\`\`\` html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>test</title>
</head>
<body>
  <header id="header" class="header">
  </header>
  <main id="main" class="main">
  </main>
  <footer id="footer" class="footer">
  </footer>
</body>
</html>
\`\`\`

if I enable js_concator, It will display incorrectly:

image

if I not enable js_concator, it will display normally:

image

My minifiers config:

all_minifier: true

js_concator:
  enable: true
  bundle_path: '/js/bundle.min.js'
  front: false
  silent: false

My package.json:

{
  "name": "hexo-site",
  "version": "0.0.0",
  "private": true,
  "hexo": {
    "version": "4.0.0"
  },
  "scripts": {
    "dev": "hexo clean && hexo s -p 8001 -o",
    "build": "hexo clean && hexo d -g"
  },
  "dependencies": {
    "hexo": "^4.0.0",
    "hexo-algolia": "^1.3.1",
    "hexo-all-minifier": "^0.5.3",
    "hexo-deployer-git": "^1.0.0",
    "hexo-generator-archive": "^0.1.5",
    "hexo-generator-category": "^0.1.3",
    "hexo-generator-feed": "^1.2.2",
    "hexo-generator-index-pin-top": "^0.2.2",
    "hexo-generator-search": "^2.4.0",
    "hexo-generator-sitemap": "^2.0.0",
    "hexo-generator-tag": "^0.2.0",
    "hexo-pwa": "^0.1.3",
    "hexo-render-pug": "^2.1.4",
    "hexo-renderer-ejs": "^0.3.1",
    "hexo-renderer-markdown-it-plus": "^1.0.4",
    "hexo-renderer-stylus": "^0.3.3",
    "hexo-server": "^0.3.3",
    "hexo-wordcount": "^6.0.1"
  }
}
@mugudamowang
Copy link

In fact, i meet a similar bug, it seems change my file, and lead to the disappearance of comment plug(like valine, gitTalk, twikoo).
so sad 😥
image

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

2 participants