twinkleplop — plop some twinkle in your code

twinkleplop

1 min read Original article ↗

plop some twinkle in your code

import { language } from "@twinkleplop/typescript";
import "@twinkleplop/theme-github";

const ts = language();
for (const [i, src] of docs) {
  const html = ts(src, {
    line_numbers: i > 0,
    attributes: { id: `doc-${i}` },
  });
  el[i].innerHTML = html;
}

no twinkle :[

learn more