Since markdown, with 11ty, can have HTML tags (including script), I can mix little JavaScript programs into a post. Here's a simple experiment:
Here is a div named d1 with an initial value of zero. Clicking the Increment d1 button will (hopefully), increment the value.