should fix sections created with chapter of more than two digits

This commit is contained in:
mthh 2017-04-07 02:37:46 +02:00
parent 40f275bf21
commit 8e7ec6e1fd
5 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") {
s.len() / 2
s.matches(".").count()
} else {
1
};

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB