Skip to content

this hexo plugin will disable the tag plugins feature when rendering markdown files

License

Notifications You must be signed in to change notification settings

think-in-universe/hexo-stop-tag-plugins

Repository files navigation

hexo-stop-tag-plugins

Build Status NPM version Coverage Status NPM Dependencies NPM DevDependencies

For Markdown rendering, disable the tag plugins, if you don't want hexo to process the markdown with nunjucks syntax, which is used by default.

Installation

$ npm install hexo-stop-tag-plugins --save
  • Hexo version >= 3.9.0 are recommended, which includes the fix of disableNunjucks property issue
  • If you use hexo version < 3.9.0, hexo may not render the markdown code blocks correctly due to the above issue

How to use

1. Confirm the package order

After installation, make sure the hexo-stop-tag-plugins package appear after all the renderers plugins. In most case, the order should be already correct with alphabetical order.

package.json:

{
  "name": "xxxxx",
  "version": "0.0.0",
  "private": true,
  "hexo": {
    "version": "3.9.0"
  },
  "dependencies": {
    "clean-css": "^4.2.1",
    "hexo": "^3.9.0",
    "hexo-all-minifier": "^0.5.3",
    "hexo-deployer-git": "^0.3.1",
    "hexo-generator-archive": "^0.1.4",
    "hexo-generator-category": "^0.1.3",
    "hexo-generator-index": "^0.2.0",
    "hexo-generator-json-content": "^2.2.0",
    "hexo-generator-tag": "^0.2.0",
    "hexo-renderer-ejs": "^0.3.1",
    "hexo-renderer-marked": "^0.2.10",
    "hexo-renderer-stylus": "^0.3.1",
    "hexo-server": "^0.2.0",
    "hexo-stop-tag-plugins": "^0.1.5",
    "uglify-es": "^3.3.9"
  }
}

2. How to disable this plugin

If you want to enabling the tag plugins, you can either uninstall this pacakge, or set the stop_tag_plugins configuration to false in _config.yml:

stop_tag_plugins: false

About

this hexo plugin will disable the tag plugins feature when rendering markdown files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published