riboseinc / asciidoctor-bibliography

Citations in AsciiDoc
MIT License
30 stars 8 forks source link

Asciidoc-bibliography messes with section levels after include #120

Open uaru opened 1 year ago

uaru commented 1 year ago

When using with asciidoctor-pdf, like

asciidoctor-pdf --trace -a scripts=cjk -r asciidoctor-bibliography -a pdf-theme=default-with-fallback-font  devguide.adoc

and including files like

include::subsection.adoc[leveloffset=+1]

The sections levels do not return to the previous level after returning from subsection.adoc

In other words, all the levels after this include are wrong.

On the other hand, skipping this plugin and running simply

asciidoctor-pdf --trace -a scripts=cjk  -a pdf-theme=default-with-fallback-font  devguide.adoc

keeps all the section levels as intended.