mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-14 14:52:37 +00:00
Revert "should fix sections created with chapter of more than two digits"
This reverts commit 8e7ec6e1fd
.
This commit is contained in:
parent
8e7ec6e1fd
commit
d768963c30
5 changed files with 1 additions and 1 deletions
|
@ -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.matches(".").count()
|
s.len() / 2
|
||||||
} else {
|
} else {
|
||||||
1
|
1
|
||||||
};
|
};
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
Loading…
Reference in a new issue