Nightly Patch Machine

    @jiangtj/hexo-patch-load-highlight-style

    1.2.0 • Public • Published

    hexo-patch-load-highlight-style

    automatically load hexo code highlighting style, support highlight and prismjs

    npm hexo

    install

    yarn add @jiangtj/hexo-patch-load-highlight-style

    config

    add theme and theme_dark to the corresponding configuration, theme_dark will be applied when your system theme is dark

    highlight:
      # ...
      theme: default
      theme_dark: default
    prismjs:
      # ...
      theme: default
      theme_dark: default

    feature

    • support all highlight styles (e.g. {theme:a11y-light} load a11y-light.css)
    • support all prismjs and prism-themes styles (e.g. {theme:coy} load prism-coy.css)
    • support auto load prism line_number plugin styles
    • support auto load prism js when preprocess is false

    tutorials

    Keywords

    Install

    npm i @jiangtj/hexo-patch-load-highlight-style

    DownloadsWeekly Downloads

    15

    Version

    1.2.0

    License

    LGPL-3.0

    Unpacked Size

    5.56 kB

    Total Files

    10

    Last publish

    Collaborators

    • jiangtj