1
From PrismJS to Better PrismJS to MicroLighter in Three Painless* Steps
The author describes evolving syntax highlighting on their Eleventy site, starting from the default PrismJS plugin to a custom server-side hack for line numbers. They then detail integrating MicroLighter, a client-side web component, by leveraging Eleventy's bundler for conditional loading and managing content escaping for optimal performance.
Alex Russellinfrequently.org6 min