diff options
| author | Konsta Hölttä | 2020-10-25 17:35:52 +0200 |
|---|---|---|
| committer | GitHub | 2020-10-25 16:35:52 +0100 |
| commit | b0c55246570b9c04e732eee43e6c02d6f3a043a4 (patch) | |
| tree | c48025d287d31506b356f5904094881245eaf6a2 /parser/src/conversion/block.rs | |
| parent | bc3325285dacd3731893295e6ec2e8c502929c5b (diff) | |
| download | rust-rst-b0c55246570b9c04e732eee43e6c02d6f3a043a4.tar.bz2 | |
Decrement renderer level after section recursion (#16)
The html renderer section level used for title numbering is incremented
when entering a new section so that subsections get correct heading
elements. Match the increment with a decrement after having rendered the
section contents, so that multiple consecutive sections would stay
consistent.
Add a test to verify this behaviour.
Diffstat (limited to 'parser/src/conversion/block.rs')
0 files changed, 0 insertions, 0 deletions
