Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
All in one theme renderers and helpers for hexo
Hexo Renderers is a public GitHub repository maintained by dimaslanjaka that bundles multiple Hexo theme renderer engines and helper functions into one installable plugin package.
Hexo Renderers provides a single entry point for loading the template engines Hexo uses to build themes: ejs, stylus, nunjucks, dartsass, pug, sass, markdown-it, rollup, and marked. It takes a _config.yml block as input and produces rendered HTML pages, stylesheets, and generated metadata during Hexo's build process. The plugin also includes custom helpers, a related-post generator, an auto post-asset-folder fixer, and a renderer cache strategy.
renderers.engines configuration array.views folder.renderers.generator, generates a meta.json file served at the site root, e.g. http://example.com/meta.json.renderers.fix.renderers.fix.html is true, escapes invalid HTML tags into HTML entities and lets you whitelist custom tag names through html_tags.marked.cache defaults to true in this plugin and markdown.cache can be set for markdown-it.meta.json for external tools.renderers.engines and have the plugin load exactly those, avoiding duplicate renderer packages.html_tags list to prevent transformation, or enable caching to reduce rebuild time.Install Hexo Renderers, then add a renderers block to your _config.yml listing the engines, generator features, and fix options you want. If you use the markdown-it engine, you must also install the patched CommonJS build of markdown-it from the repository's provided link, because the original markdown-it only supports ESM. At build time, Hexo loads the plugin, which activates the selected renderers, applies the markdown configuration (preset, plugins, anchors, images, inline), runs enabled generators, and applies requested fixes.
