LightGuard / asciidoc-splitter

A splitter utility for helping create modular docs from chapter files.
BSD 2-Clause "Simplified" License
8 stars 8 forks source link

Subsections not handled properly #87

Closed bhardesty closed 3 years ago

bhardesty commented 3 years ago

By my understanding, asciidoc-splitter should ignore any sections that do not have an explicitly-defined ID (i.e. [id="my-id"]). However, I have a document with level 3 and level 4 headings that should not be split out into separate modules. The splitter correctly does not split out these sections as separate modules, but it incorrectly changes the heading levels.

This is what I expected to see:

= Title of procedure module
...
== Subsection
...
=== Third-level section

Instead, this is what I ended up with:

= Title of procedure module
...
Subsection
...
= Third-level section