fix: remove markdown hack

Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
jolheiser 2023-09-19 10:42:53 -05:00
parent 2f7ded9122
commit d7abc4efa3
No known key found for this signature in database
GPG key ID: B853ADA5DA7BBF7A

View file

@ -504,11 +504,6 @@ WHERE p.id = ?1`
var rawHTML *template.HTML
// XXX(Xe): HACK around https://github.com/go-enry/go-enry/pull/154
if filepath.Ext(fname) == ".markdown" {
lang = "Markdown"
}
var cssClass string
if lang != "" {
cssClass = fmt.Sprintf("lang-%s", strings.ToLower(lang))