markup/highlight: Add hl_inline option

If set to true, the highlighted code will not be wrapped in any div.

Closes #9442
This commit is contained in:
Bjørn Erik Pedersen
2022-03-09 10:45:02 +01:00
parent c97fed08f9
commit a360cab75a
4 changed files with 72 additions and 2 deletions

View File

@@ -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:"-"`