Fix section linking and editing
This commit is contained in:
+1
-1
@@ -91,7 +91,7 @@ func secionSpanEnd(sections [][]byte, start int) int {
|
||||
if level == 0 {
|
||||
return start + 1
|
||||
}
|
||||
for i := start + 1; i <= len(sections); i++ {
|
||||
for i := start + 1; i < len(sections); i++ {
|
||||
if l, _ := sectionHeading(sections[i]); l > 0 && l <= level {
|
||||
return i
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user