diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-03-09 10:45:02 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-03-09 11:33:13 +0100 |
commit | a360cab75a073c2a8d47dcd27f52a6847e8d8d13 (patch) | |
tree | 46d139073a7e77950698f8dcd1172201b31e1ee1 /markup/highlight/config.go | |
parent | c97fed08f90b3758c85d3f67f038cd1f794d16fc (diff) |
markup/highlight: Add hl_inline option
If set to true, the highlighted code will not be wrapped in any div.
Closes #9442
Diffstat (limited to 'markup/highlight/config.go')
-rw-r--r-- | markup/highlight/config.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/markup/highlight/config.go b/markup/highlight/config.go index 1142c5e11..46ef79071 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:"-"` |