/hexo-highlight-shiki

Primary LanguageJavaScriptMIT LicenseMIT

Hexo Highlight Shiki

Use shiki as code block highlighter instead of builtin highlight.js or prism.js.

Currently only works in hexo version >= 7.0.0, which has a better highlight extend api.

Otherwise please use official plugin hexo-shiki-twoslash instead.

Installation

  1. Install thiis package.

    pnpm add hexo-highlight-shiki
  2. Setup config

    syntax_highlighter: "shiki"
  3. Configure theme (default to github-light)

    shiki:
      theme: "github-light"
  4. Configure renderer if using djot

    shiki:
      renderer: "djot"