Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Latest commit

 

History

History
25 lines (15 loc) · 897 Bytes

themes.md

File metadata and controls

25 lines (15 loc) · 897 Bytes

Themes

Bundled Themes

Themes listed below are re-distributed via tm-themes into the shikiji package.

Themes are covered by their repositories’ respective licenses, which are permissive (apache-2.0, mit, etc), and made available in this NOTICE.

For loading your custom themes, please reference to this guide.

Special Themes

You can set theme to none to bypass highlighting. This is useful as the fallback when you receive user specified theme names that are not available. For example:

import { codeToHtml } from 'shikiji'

const html = codeToHtml('console.log("Hello World")', {
  lang: 'javascript',
  theme: 'none', // [!code hl]
})