sugar-high
Installation
SKILL.md
Sugar High
Use sugar-high for a small, DOM-free HTML highlighter. It highlights JavaScript (including JSX) by default and returns an HTML string.
import { highlight } from 'sugar-high'
const html = highlight('const ready = true')
Pass a canonical built-in language name when it is known:
highlight('print("hi")', { lang: 'python' })
highlight('{"ready": true}', { lang: 'json' })
For language labels from filenames or Markdown fences, normalize them first with lang():