Merge pull request #20 from jolheiser/enry

fix: remove markdown hack
This commit is contained in:
Xe Iaso 2023-09-19 11:46:21 -04:00 committed by GitHub
commit 856c3ac790
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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))