It depends on how the HTML is generated from your markdown. But you can style the checkbox in CSS with
pointer-events: visibleFill;
This allows the viewer in a static html to tick the checkboxes. I use the Markdown All in One extension in VS Code to print markdown to HTML.