mirror of
https://github.com/kovetskiy/mark.git
synced 2026-04-20 13:22:37 +00:00
parse "linenumbers" in code block
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user