Should fix sections created with chapter of more than two digits

This commit is contained in:
mthh 2017-04-07 12:46:28 +02:00 committed by GitHub
parent d768963c30
commit df5472ab5a
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ impl HelperDef for RenderToc {
} }
let level = if let Some(s) = item.get("section") { let level = if let Some(s) = item.get("section") {
s.len() / 2 s.matches(".").count()
} else { } else {
1 1
}; };