diff options
Diffstat (limited to 'markup/highlight/config.go')
-rw-r--r-- | markup/highlight/config.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/markup/highlight/config.go b/markup/highlight/config.go index 80991f21b..d55958d35 100644 --- a/markup/highlight/config.go +++ b/markup/highlight/config.go @@ -72,6 +72,9 @@ type Config struct { // A space separated list of line numbers, e.g. “3-8 10-20”. Hl_Lines string + // If set, the markup will not be wrapped in any container. + Hl_inline bool + // A parsed and ready to use list of line ranges. HL_lines_parsed [][2]int `json:"-"` @@ -93,6 +96,7 @@ func (cfg Config) ToHTMLOptions() []html.Option { html.LineNumbersInTable(cfg.LineNumbersInTable), html.WithClasses(!cfg.NoClasses), html.LinkableLineNumbers(cfg.AnchorLineNos, lineAnchors), + html.InlineCode(cfg.Hl_inline), } if cfg.Hl_Lines != "" || cfg.HL_lines_parsed != nil { |