Merge pull request #248 from mthh/master
Fix alignement of chapters with three digit numbering
This commit is contained in:
commit
ef402c16e8
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue