Beautiful map components. 100% Free, Zero config, one command setup.
import { codeToHtml } from "shiki"; export async function highlightCode( code: string, lang: string = "tsx", ): Promise<string> { return codeToHtml(code, { lang, themes: { light: "github-light", dark: "github-dark", }, defaultColor: false, }); }