Socket
Socket
Sign inDemoInstall

hexo-shiki-twoslash

Package Overview
Dependencies
2
Maintainers
3
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hexo-shiki-twoslash

A Hexo plugin which adds shiki with optional twoslash-powered code samples


Version published
Weekly downloads
4
Maintainers
3
Created
Weekly downloads
 

Readme

Source

Hexo Shiki Twoslash

Sets up markdown code blocks to run through shiki which means it gets the VS Code quality syntax highlighting mixed with the twoslash JavaScript tooling from the TypeScript website.

Setup
  1. Install the dependency: yarn add hexo-shiki-twoslash

  2. Disable highlight in ./config.yml:

    highlight:
    -  enable: true
    +  enable: false
    
  3. Configure the plugin via ./config.yml:

    shiki_twoslash:
      theme: "nord"
    
  4. Follow the steps in npmjs.com/package/remark-shiki-twoslash to add the CSS requirements.

  5. Learn in npmjs.com/package/remark-shiki-twoslash to see what is available, this package leaves all the heavy work to that module.

FAQs

Last updated on 01 Mar 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc