UNPKG

@tanstack/highlight

Version:

Tiny class-based syntax highlighting for documentation.

7 lines (6 loc) • 220 B
import { defineLanguage } from '../core.js'; import { collectScriptRanges } from '../internal/script.js'; export const jsx = defineLanguage({ name: 'jsx', tokenize: (code) => collectScriptRanges(code, true), });