favicon for site or author

Jonathan Lau 2 posts

Author: JONATHAN LAU (2 posts)

Articles about creating user-friendly, fast, and scalable web applications.

2024

Displaying Line Numbers in 11ty Code Blocks

Add line numbers to 11ty code blocks with Prism and Markdown-it, bypassing the plugin's DOM-dependency by adjusting the renderer during the build process.

Create an Interactive TOC from Markdown-Generated Content

Create an interactive TOC for Markdown in Static Site Generators using the Intersection Observer API.

Some content below may have been published before the release of Eleventy v3.0.0 (October 1, 2024). Information may have changed in newer versions. Current stable release: 3.12
Some content below may have been published before the release of Eleventy v2.0.0 (Feb 8, 2023). Information may have changed in newer versions. Current stable release: 3.12.
Some content below may have been published before the release of Eleventy v1.0.0 (Jan 8, 2022). Information may have changed in newer versions. Current stable release: 3.12.
All of the content below was published before the release of Eleventy v1.0.0 (Jan 8, 2022). Information may have changed in newer versions. Current stable release: 3.12.