mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
added remaining relevant options
This commit is contained in:
parent
e904ccffb6
commit
26d23f7f4b
1 changed files with 17 additions and 7 deletions
|
@ -133,17 +133,27 @@ func Highlight(code, lang, optsStr string) string {
|
|||
var pygmentsKeywords = make(map[string]bool)
|
||||
|
||||
func init() {
|
||||
pygmentsKeywords["style"] = true
|
||||
pygmentsKeywords["encoding"] = true
|
||||
pygmentsKeywords["noclasses"] = true
|
||||
pygmentsKeywords["hl_lines"] = true
|
||||
pygmentsKeywords["linenos"] = true
|
||||
pygmentsKeywords["classprefix"] = true
|
||||
pygmentsKeywords["startinline"] = true
|
||||
pygmentsKeywords["outencoding"] = true
|
||||
pygmentsKeywords["nowrap"] = true
|
||||
pygmentsKeywords["full"] = true
|
||||
pygmentsKeywords["title"] = true
|
||||
pygmentsKeywords["anchorlinenos"] = true
|
||||
pygmentsKeywords["style"] = true
|
||||
pygmentsKeywords["noclasses"] = true
|
||||
pygmentsKeywords["classprefix"] = true
|
||||
pygmentsKeywords["cssclass"] = true
|
||||
pygmentsKeywords["cssstyles"] = true
|
||||
pygmentsKeywords["prestyles"] = true
|
||||
pygmentsKeywords["linenos"] = true
|
||||
pygmentsKeywords["hl_lines"] = true
|
||||
pygmentsKeywords["linenostart"] = true
|
||||
pygmentsKeywords["linenostep"] = true
|
||||
pygmentsKeywords["linenospecial"] = true
|
||||
pygmentsKeywords["nobackground"] = true
|
||||
pygmentsKeywords["lineseparator"] = true
|
||||
pygmentsKeywords["lineanchors"] = true
|
||||
pygmentsKeywords["linespans"] = true
|
||||
pygmentsKeywords["anchorlinenos"] = true
|
||||
}
|
||||
|
||||
func parseOptions(options map[string]string, in string) error {
|
||||
|
|
Loading…
Reference in a new issue