The correct markdown language identifier for Go is go, not golang. Fixing this allows to get correct syntax highlighting in every markdown processor.
This PR also adds a new gocodeEllipsis func for templates, which is a merge of gocode and inlineCodeEllipsis, allowing to display Go code with ellipsis.
The correct markdown language identifier for Go is
go
, notgolang
. Fixing this allows to get correct syntax highlighting in every markdown processor.This PR also adds a new
gocodeEllipsis
func for templates, which is a merge ofgocode
andinlineCodeEllipsis
, allowing to display Go code with ellipsis.