Allow checking off tasks from rendered pages
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user