Versions in this module Expand all Collapse all v1 v1.0.0 Dec 20, 2022 Changes in this version + var DefaultConfig = Config + func ApplyLegacyConfig(cfg config.Provider, conf *Config) error + func WritePreEnd(w io.Writer) + func WritePreStart(w io.Writer, language, styleAttr string) + type Config struct + AnchorLineNos bool + CodeFences bool + GuessSyntax bool + HL_lines_parsed [][2]int + Hl_Lines string + Hl_inline bool + LineAnchors string + LineNoStart int + LineNos bool + LineNumbersInTable bool + NoClasses bool + NoHl bool + Style string + TabWidth int + func (cfg Config) ToHTMLOptions() []html.Option + type Highlighter interface + Highlight func(code, lang string, opts any) (string, error) + HighlightCodeBlock func(ctx hooks.CodeblockContext, opts any) (HightlightResult, error) + func New(cfg Config) Highlighter + type HightlightResult struct + func (h HightlightResult) Inner() template.HTML + func (h HightlightResult) Wrapped() template.HTML