parse "linenumbers" in code block

This commit is contained in:
hypengw
2026-01-09 09:51:29 +08:00
committed by Manuel Rüger
parent 5bb400cf51
commit c1c9a13391
2 changed files with 28 additions and 34 deletions

View File

@@ -108,6 +108,10 @@ func (r *ConfluenceFencedCodeBlockRenderer) renderFencedCodeBlock(writer util.Bu
collapse = false
continue
}
if option == "linenumbers" {
linenumbers = true
continue
}
var i int
if _, err := fmt.Sscanf(option, "%d", &i); err == nil {