Allow checking off tasks from rendered pages

This commit is contained in:
2026-05-04 11:37:38 +02:00
parent bdac2ca9a0
commit 66b4374b48
6 changed files with 148 additions and 1 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ func renderMarkdown(raw []byte) template.HTML {
if err := md.Convert(raw, &buf); err != nil {
return ""
}
return template.HTML(buf.String())
return template.HTML(rewriteTaskCheckboxes(buf.Bytes()))
}
// extractFirstHeading returns the text of the first ATX heading in raw markdown,