Added support for footnotes and fixed category AJAX post

This commit is contained in:
Leon Mika 2026-03-29 10:45:45 +11:00
parent 023574aac6
commit 9b20665d11
4 changed files with 18 additions and 2 deletions

View file

@ -49,6 +49,7 @@ func New(site pubmodel.Site, opts Options) (*Builder, error) {
mdRenderer: markdown.NewRendererForSite(),
postMDProcessors: []postMDProcessor{
uploadAbsoluteURL,
removeFootnoteHRs,
},
}, nil
}

View file

@ -35,3 +35,8 @@ func uploadAbsoluteURL(site pubmodel.Site, dom *goquery.Document) error {
})
return nil
}
func removeFootnoteHRs(site pubmodel.Site, dom *goquery.Document) error {
dom.Find("div.footnotes > hr").Remove()
return nil
}