🎨 Add the code-block class name when rendering code blocks in the market README (#17145)

This commit is contained in:
Jeffrey Chen 2026-03-06 17:44:20 +08:00 committed by GitHub
parent f4b380d62e
commit 14c35bfa0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 116 additions and 102 deletions

View file

@ -189,7 +189,7 @@ func InstalledPlugins(frontend string) (ret []*Plugin) {
packageInstallSizeCache.SetDefault(plugin.RepoURL, is)
}
plugin.HInstallSize = humanize.BytesCustomCeil(uint64(plugin.InstallSize), 2)
plugin.PreferredReadme = loadInstalledReadme(installPath, "/plugins/"+dirName+"/", plugin.Readme)
plugin.PreferredReadme = getInstalledPackageREADME(installPath, "/plugins/"+dirName+"/", plugin.Readme)
plugin.Outdated = isOutdatedPlugin(plugin, bazaarPlugins)
plugin.Incompatible = isIncompatiblePlugin(plugin, frontend)
ret = append(ret, plugin)