fix(parser): headline parsing
This commit is contained in:
parent
9c82b268d6
commit
b17b355d3b
1 changed files with 2 additions and 2 deletions
|
|
@ -33,9 +33,9 @@ impl<'a> Headline<'a> {
|
|||
(
|
||||
i + 1,
|
||||
if i + 1 == text.len() {
|
||||
Headline::find_level(&text[i + 1..], level) + i + 1
|
||||
} else {
|
||||
i + 1
|
||||
} else {
|
||||
Headline::find_level(&text[i + 1..], level) + i + 1
|
||||
},
|
||||
)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue